{"json_modified": "2015-04-25T15:50:53.084828", "slug": "Web/JavaScript/Reference/Global_Objects/Promise/then", "tags": [], "locale": "pt-BR", "title": "Promise.prototype.then()", "translations": [{"title": "Promise.prototype.then()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then", "tags": ["Experimental", "prototype", "Exp\u00e9rimental", "JavaScript", "Promise", "ECMAScript6", "Method"], "summary": "The then()
method returns a Promise
. It takes two arguments, both are callback functions for the success and failure cases of the Promise
.", "localization_tags": [], "locale": "en-US", "last_edit": "2014-10-18T08:20:19", "review_tags": []}, {"title": "Promise.prototype.then()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Promise/then", "tags": ["Reference", "Experimental", "R\u00e9f\u00e9rence", "prototype", "Exp\u00e9rimental", "JavaScript", "Promise", "ECMAScript6", "Method"], "summary": "La m\u00e9thode then()
renvoie un objet Promise
. Elle prend deux arguments qui sont deux fonctions callback \u00e0 utiliser en cas de compl\u00e9tion ou d'\u00e9chec de la Promise
.", "localization_tags": [], "locale": "fr", "last_edit": "2015-02-01T12:47:58", "review_tags": []}, {"title": "Promise.prototype.then()", "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise/then", "tags": [], "summary": "then()
\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2aPromise\u3002
\u5b83\u6709\u4e24\u4e2a\u53c2\u6570\uff0c\u5206\u522b\u4e3aPromise\u5728 success \u548c failure \u60c5\u51b5\u4e0b\u7684\u56de\u8c03\u51fd\u6570\u3002", "localization_tags": ["inprogress"], "locale": "zh-CN", "last_edit": "2015-04-04T09:20:59", "review_tags": []}], "modified": "2015-04-25T15:50:52", "label": "Promise.prototype.then()", "localization_tags": ["inprogress"], "url": "/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Promise/then", "last_edit": "2015-04-03T11:27:05", "summary": "O m\u00e9todo then() retorna uma Promise. Possui dois argumentos, ambos s\u00e3o \"call back functions\", sendo uma para o sucesso e outra para o fracasso da promessa.", "sections": [{"id": "Quick_Links", "title": "Standard built-in objects Promise Properties Promise.prototype Methods Promise.all() [Translate] Promise.prototype.catch() [Translate] Promise.prototype.then() Promise.race() [Translate] Promise.reject() [Translate] Promise.resolve() [Translate] Inheritance: Function Properties Function.arguments [Translate] Function.arity [Translate] Function.caller [Translate] Function.displayName [Translate] Function.length [Translate] Function.name [Translate] Function.prototype [Translate] Methods Function.prototype.apply() [Translate] Function.prototype.bind() [Translate] Function.prototype.call() Function.prototype.isGenerator() [Translate] Function.prototype.toSource() [Translate] Function.prototype.toString() [Translate] Object Properties Object.prototype.__count__ [Translate] Object.prototype.__noSuchMethod__ [Translate] Object.prototype.__parent__ [Translate] Object.prototype.__proto__ [Translate] Object.prototype.constructor [Translate] Methods Object.prototype.__defineGetter__() [Translate] Object.prototype.__defineSetter__() [Translate] Object.prototype.__lookupGetter__() [Translate] Object.prototype.__lookupSetter__() [Translate] Object.prototype.hasOwnProperty() Object.prototype.isPrototypeOf() [Translate] Object.prototype.propertyIsEnumerable() [Translate] Object.prototype.toLocaleString() [Translate] Object.prototype.toSource() [Translate] Object.prototype.toString() Object.prototype.unwatch() [Translate] Object.prototype.valueOf() [Translate] Object.prototype.watch() [Translate]"}, {"id": "Summary", "title": "Resumo"}, {"id": "Syntax", "title": "Sintaxe"}, {"id": "Parametros", "title": "Parametros"}, {"id": "Description", "title": "Descri\u00e7\u00e3o"}, {"id": "Exemplos", "title": "Exemplos"}, {"id": "Usando_o_m.C3.A9todo_then", "title": "Usando o m\u00e9todo then"}, {"id": "Encadeando", "title": "Encadeando"}, {"id": "Especifica.C3.A7.C3.B5es", "title": "Especifica\u00e7\u00f5es"}, {"id": "Compatibilidade_dos_Browsers", "title": "Compatibilidade dos\u00a0Browsers"}, {"id": "Veja_tamb.C3.A9m", "title": "Veja tamb\u00e9m"}], "id": 146307, "review_tags": []}