{"json_modified": "2016-03-17T23:14:31.975328", "slug": "Web/JavaScript/Reference/Global_Objects/Promise/resolve", "tags": [], "locale": "zh-CN", "title": "Promise.resolve()", "translations": [{"title": "Promise.resolve()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve", "tags": ["Promise", "ECMAScript6", "Method", "JavaScript"], "summary": "The Promise.resolve(value) method returns a Promise object that is resolved with the given value. If the value is a thenable (i.e. has a then method), the returned promise will \"follow\" that thenable, adopting its eventual state; otherwise the returned promise will be fulfilled with the value.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-10-14T03:06:58", "review_tags": []}, {"title": "Promise.resolve()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Promise/resolve", "tags": ["R\u00e9f\u00e9rence", "ECMAScript6", "M\u00e9thode", "Promise", "JavaScript"], "summary": "La fonction statique Promise.resolve renvoie un objet Promise qui est r\u00e9solu.", "localization_tags": [], "locale": "fr", "last_edit": "2016-02-15T03:53:14", "review_tags": []}, {"title": "Promise.resolve()", "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve", "tags": ["Experimental", "Exp\u00e9rimental", "JavaScript", "Promise", "ECMAScript6", "Method"], "summary": "\u5f15\u6570\u3067\u4e0e\u3048\u3089\u308c\u305f\u5024\u3067\u5b8c\u4e86\u3055\u308c\u305fPromise \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002\u5024\u304c\u6210\u529f\u306a\u3089 (\u3059\u306a\u308f\u3061then \u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3063\u3066\u3044\u308b)\u3001\u8fd4\u3055\u308c\u308b\u30d7\u30ed\u30df\u30b9\u306f\u6210\u529f\u306b\u5f93\u3044\u3001\u305d\u306e\u6700\u7d42\u7684\u306a\u72b6\u614b\u3092\u63a1\u7528\u3057\u307e\u3059\u3002\u3055\u3082\u306a\u3051\u308c\u3070\u3001\u8fd4\u3055\u308c\u308b\u30d7\u30ed\u30df\u30b9\u306f\u305d\u306e\u5024\u3067\u5931\u6557\u306b\u3055\u308c\u307e\u3059\u3002", "localization_tags": ["inprogress"], "locale": "ja", "last_edit": "2015-06-21T08:38:56", "review_tags": ["editorial"]}], "modified": "2016-03-17T23:14:31", "label": "Promise.resolve()", "localization_tags": [], "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve", "last_edit": "2016-03-17T23:14:28", "summary": "Promise.resolve(value)\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u4ee5\u7ed9\u5b9a\u503c\u89e3\u6790\u540e\u7684Promise\u5bf9\u8c61\u3002\u4f46\u5982\u679c\u8fd9\u4e2a\u503c\u662f\u4e2athenable\uff08\u5373\u5e26\u6709then\u65b9\u6cd5\uff09\uff0c\u8fd4\u56de\u7684promise\u4f1a\u201c\u8ddf\u968f\u201d\u8fd9\u4e2athenable\u7684\u5bf9\u8c61\uff0c\u91c7\u7528\u5b83\u7684\u6700\u7ec8\u72b6\u6001\uff08\u6307resolved/rejected/pending/settled\uff09\uff1b\u5426\u5219\u4ee5\u8be5\u503c\u4e3a\u6210\u529f\u72b6\u6001\u8fd4\u56depromise\u5bf9\u8c61\u3002", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Summary", "title": "\u6982\u8ff0"}, {"id": "Syntax", "title": "\u8bed\u6cd5"}, {"id": "\u53c2\u6570", "title": "\u53c2\u6570"}, {"id": "Description", "title": "\u63cf\u8ff0"}, {"id": "\u793a\u4f8b", "title": "\u793a\u4f8b"}, {"id": "\u4f7f\u7528\u9759\u6001\u65b9\u6cd5Promise.resolve", "title": "\u4f7f\u7528\u9759\u6001\u65b9\u6cd5"}, {"id": "\u5bf9\u4e00\u4e2a\u6570\u7ec4\u8fdb\u884cresolve", "title": "\u5bf9\u4e00\u4e2a\u6570\u7ec4\u8fdb\u884cresolve"}, {"id": "Resolve\u53e6\u4e00\u4e2apromise\u5bf9\u8c61", "title": "Resolve\u53e6\u4e00\u4e2apromise\u5bf9\u8c61"}, {"id": "resolve_thenable\u7684\u5bf9\u8c61\u4eec\u5e76\u629b\u51fa\u9519\u8bef", "title": "resolve thenable\u7684\u5bf9\u8c61\u4eec\u5e76\u629b\u51fa\u9519\u8bef"}, {"id": "\u89c4\u8303", "title": "\u89c4\u8303"}, {"id": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027", "title": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027"}, {"id": "\u53c2\u89c1", "title": "\u53c2\u89c1"}], "id": 151225, "review_tags": []}