{"json_modified": "2015-05-24T19:32:48.796207", "slug": "Web/JavaScript/Reference/Global_Objects/Symbol/for", "tags": [], "locale": "zh-CN", "title": "Symbol.for()", "translations": [{"title": "Symbol.for()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/for", "tags": ["Experimental", "Exp\u00e9rimental", "JavaScript", "ECMAScript6", "Method", "Symbol"], "summary": "The Symbol.for(key) method searches for existing symbols in a runtime-wide symbol registry with the given key and returns it if found. Otherwise a new symbol gets created in the global symbol registry with this key.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-07T06:04:07", "review_tags": []}, {"title": "Symbol.for()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Symbol/for", "tags": ["Reference", "R\u00e9ference", "Experimental", "R\u00e9f\u00e9rence", "Exp\u00e9rimental", "JavaScript", "ECMAScript6", "Symbol", "Method"], "summary": "La m\u00e9thode Symbol.for(cl\u00e9) permet de chercher parmi les symboles existants enregistr\u00e9s dans le registre global de l'environnement d'ex\u00e9cution. Si un symbole associ\u00e9 \u00e0 la cl\u00e9 donn\u00e9e existe, il est renvoy\u00e9 par la fonction, sinon un nouveau symbole associ\u00e9 \u00e0 cette cl\u00e9 est cr\u00e9\u00e9 dans le registre.", "localization_tags": [], "locale": "fr", "last_edit": "2015-04-08T13:11:23", "review_tags": []}, {"title": "Symbol.for()", "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/Symbol/for", "tags": ["Experimental", "Exp\u00e9rimental", "JavaScript", "ECMAScript6", "Method", "Symbol"], "summary": "\u5f15\u6570\u3067\u4e0e\u3048\u3089\u308c\u305f\u30ad\u30fc\u3067\u30e9\u30f3\u30bf\u30a4\u30e0\u5168\u4f53\u306e\u30b7\u30f3\u30dc\u30eb\u30ec\u30b8\u30b9\u30c8\u30ea\u5185\u306b\u5b58\u5728\u3057\u3066\u3044\u308b\u30b7\u30f3\u30dc\u30eb\u3092\u691c\u7d22\u3057\u3001\u898b\u3064\u304b\u3063\u305f\u5834\u5408\u305d\u308c\u3092\u8fd4\u3057\u307e\u3059\u3002\u3055\u3082\u306a\u3051\u308c\u3070\u3001\u65b0\u3057\u3044\u30b7\u30f3\u30dc\u30eb\u304c\u3053\u306e\u30ad\u30fc\u3067\u30b0\u30ed\u30fc\u30d0\u30eb\u30b7\u30f3\u30dc\u30eb\u30ec\u30b8\u30b9\u30c8\u30ea\u5185\u306b\u751f\u6210\u3055\u308c\u307e\u3059\u3002", "localization_tags": ["inprogress"], "locale": "ja", "last_edit": "2015-05-18T17:35:19", "review_tags": ["editorial"]}], "modified": "2015-05-24T19:32:47", "label": "Symbol.for()", "localization_tags": [], "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Symbol/for", "last_edit": "2014-07-08T06:10:32", "summary": "Symbol.for(key) \u65b9\u6cd5\u4f1a\u6839\u636e\u7ed9\u5b9a\u7684\u952e key\uff0c\u6765\u4ece symbol \u6ce8\u518c\u8868\u4e2d\u627e\u5230\u5bf9\u5e94\u7684 symbol\uff0c\u5982\u679c\u627e\u5230\u4e86\uff0c\u5219\u8fd4\u56de\u5b83\uff0c\u5426\u5219\uff0c\u65b0\u5efa\u4e00\u4e2a\u4e0e\u8be5\u952e\u5173\u8054\u7684 symbol\uff0c\u5e76\u653e\u5165 symbol \u6ce8\u518c\u8868\u4e2d\u3002", "sections": [{"id": "Quick_Links", "title": "JavaScript \u6807\u51c6\u5e93 Symbol \u5c5e\u6027 Symbol.iterator [\u6211\u6765\u8bd1!] Symbol.match [\u6211\u6765\u8bd1!] Symbol.prototype [\u6211\u6765\u8bd1!] Symbol.species [\u6211\u6765\u8bd1!] \u65b9\u6cd5 Symbol.for() Symbol.keyFor() Symbol.prototype.toSource() [\u6211\u6765\u8bd1!] Symbol.prototype.toString() Symbol.prototype.valueOf() \u7ee7\u627f Function \u5c5e\u6027 Function.arguments Function.arity Function.caller Function.displayName [\u6211\u6765\u8bd1!] 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__ [\u6211\u6765\u8bd1!] Object.prototype.__noSuchMethod__ [\u6211\u6765\u8bd1!] Object.prototype.__parent__ Object.prototype.__proto__ Object.prototype.constructor \u65b9\u6cd5 Object.prototype.__defineGetter__() Object.prototype.__defineSetter__() Object.prototype.__lookupGetter__() Object.prototype.__lookupSetter__() [\u6211\u6765\u8bd1!] Object.prototype.hasOwnProperty() Object.prototype.isPrototypeOf() Object.prototype.propertyIsEnumerable() Object.prototype.toLocaleString() Object.prototype.toSource() Object.prototype.toString() Object.prototype.unwatch() [\u6211\u6765\u8bd1!] 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": "symbol_.E6.B3.A8.E5.86.8C.E8.A1.A8", "title": "symbol \u6ce8\u518c\u8868"}, {"id": ".E7.A4.BA.E4.BE.8B", "title": "\u793a\u4f8b"}, {"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": "See_Also", "title": "\u76f8\u5173\u94fe\u63a5"}], "id": 123701, "review_tags": []}