{"json_modified": "2015-04-17T08:22:57.607410", "slug": "Web/JavaScript/Reference/Global_Objects/Promise/catch", "tags": [], "locale": "zh-CN", "title": "Promise.prototype.catch()", "translations": [{"title": "Promise.prototype.catch()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch", "tags": ["Experimental", "prototype", "Exp\u00e9rimental", "JavaScript", "Promise", "ECMAScript6", "Method"], "summary": "The catch() method returns a Promise
and deals with rejected cases only. It behaves the same as calling Promise.prototype.then(undefined, onRejected)
.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-04T09:09:40", "review_tags": []}, {"title": "Promise.prototype.catch()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Promise/catch", "tags": ["Reference", "R\u00e9ference", "Experimental", "R\u00e9f\u00e9rence", "prototype", "Exp\u00e9rimental", "JavaScript", "Promise", "ECMAScript6", "Method"], "summary": "La m\u00e9thode catch() renvoie un objet Promise
et ne traite que des cas o\u00f9 la promesse initiale est rejet\u00e9e. Elle a le m\u00eame effet qu'un appel \u00e0 Promise.prototype.then(undefined, siRejet\u00e9e)
.", "localization_tags": [], "locale": "fr", "last_edit": "2015-04-04T09:33:53", "review_tags": []}], "modified": "2015-04-17T08:22:56", "label": "Promise.prototype.catch()", "localization_tags": [], "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch", "last_edit": "2015-04-04T09:13:30", "summary": "catch()\u00a0\u65b9\u6cd5\u53ea\u5904\u7406Promise\u88ab\u62d2\u7edd\u7684\u60c5\u51b5\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2aPromise\u3002\u8be5\u65b9\u6cd5\u7684\u884c\u4e3a\u548c\u8c03\u7528
Promise.prototype.then(undefined, onRejected)
\u76f8\u540c\u3002", "sections": [{"id": "Quick_Links", "title": "JavaScript \u6807\u51c6\u5e93 Promise \u5c5e\u6027 Promise.prototype \u65b9\u6cd5 Promise.all() Promise.prototype.catch() Promise.prototype.then() Promise.race() Promise.reject() Promise.resolve() [Translate] \u7ee7\u627f Function \u5c5e\u6027 Function.arguments Function.arity Function.caller Function.displayName [Translate] Function.length Function.name Function.prototype \u65b9\u6cd5 Function.prototype.apply() Function.prototype.bind() Function.prototype.call() Function.prototype.isGenerator() Function.prototype.toSource() Function.prototype.toString() Object \u5c5e\u6027 Object.prototype.__count__ [Translate] Object.prototype.__noSuchMethod__ [Translate] Object.prototype.__parent__ Object.prototype.__proto__ Object.prototype.constructor \u65b9\u6cd5 Object.prototype.__defineGetter__() Object.prototype.__defineSetter__() Object.prototype.__lookupGetter__() Object.prototype.__lookupSetter__() [Translate] Object.prototype.hasOwnProperty() Object.prototype.isPrototypeOf() Object.prototype.propertyIsEnumerable() Object.prototype.toLocaleString() Object.prototype.toSource() Object.prototype.toString() Object.prototype.unwatch() [Translate] Object.prototype.valueOf() Object.prototype.watch()"}, {"id": "Summary", "title": "\u6982\u8ff0"}, {"id": "Syntax", "title": "\u8bed\u6cd5"}, {"id": ".E5.8F.82.E6.95.B0", "title": "\u53c2\u6570"}, {"id": "Description", "title": "\u63cf\u8ff0"}, {"id": ".E7.A4.BA.E4.BE.8B", "title": "\u793a\u4f8b"}, {"id": ".E4.BD.BF.E7.94.A8catch.E6.96.B9.E6.B3.95", "title": "\u4f7f\u7528 catch \u65b9\u6cd5"}, {"id": ".E8.A7.84.E8.8C.83", "title": "\u89c4\u8303"}, {"id": ".E6.B5.8F.E8.A7.88.E5.99.A8.E5.85.BC.E5.AE.B9.E6.80.A7", "title": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027"}, {"id": ".E5.8F.82.E8.A7.81", "title": "\u53c2\u89c1"}], "id": 131745, "review_tags": []}