{"json_modified": "2015-06-25T21:56:49.960119", "slug": "Web/JavaScript/Reference/Statements/for...of", "tags": [], "locale": "zh-CN", "title": "for...of", "translations": [{"title": "for...of", "url": "/en-US/docs/Web/JavaScript/Reference/Statements/for...of", "tags": ["Statement", "ECMAScript6", "Experimental", "Exp\u00e9rimental", "JavaScript"], "summary": "The <strong><code>for...of</code> statement </strong>creates a loop Iterating over <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/iterable\">iterable objects</a> (including <a href=\"/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\" title=\"The JavaScript Array global object is a constructor for arrays, which are high-level, list-like objects.\"><code>Array</code></a>,\u00a0<a href=\"/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\" title=\"The Map object is a simple key/value map. Any value (both objects and primitive values) may be used as either a key or a value.\"><code>Map</code></a>, <a href=\"/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\" title=\"The Set object lets you store unique values of any type, whether primitive values or object references.\"><code>Set</code></a>,\u00a0<a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/arguments\">arguments</a>\u00a0object and so on), invoking a custom iteration hook with statements to be executed for the value of each distinct property.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-12T05:27:12", "review_tags": []}, {"title": "for...of", "url": "/ja/docs/Web/JavaScript/Reference/Statements/for...of", "tags": ["ECMAScript6", "JavaScript Reference", "NeedsBrowserCompatibility", "JavaScript"], "summary": "\u53cd\u5fa9\u51e6\u7406\u53ef\u80fd\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 (<a href=\"/ja/docs/JavaScript/Reference/Global_Objects/Array\" title=\"Array\">Array</a>\u3001Array \u306b\u985e\u4f3c\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3001<a href=\"/ja/docs/JavaScript/Guide/Iterators_and_Generators\" title=\"Iterators and generators\">\u30a4\u30c6\u30ec\u30fc\u30bf\u3084\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf</a>\u3092\u542b\u3080) \u306b\u53cd\u5fa9\u51e6\u7406\u3092\u884c\u3044\u3001\u5404\u3005\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u306b\u5bfe\u3057\u3066\u5b9f\u884c\u3059\u308b\u6587\u3068\u3068\u3082\u306b\u72ec\u81ea\u306e\u53cd\u5fa9\u51e6\u7406\u306e\u30d5\u30c3\u30af\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2015-04-17T00:28:39", "review_tags": []}, {"title": "for...of", "url": "/fr/docs/Web/JavaScript/Reference/Instructions/for...of", "tags": ["Reference", "JavaScript", "Experimental", "R\u00e9ference", "R\u00e9f\u00e9rence", "Exp\u00e9rimental", "Statement", "ECMAScript6"], "summary": "L'<strong>instruction <code>for...of</code></strong> permet de cr\u00e9er une boucle qui parcourt un <a href=\"/fr/docs/Web/JavaScript/Reference/Les_protocoles_iteration#Le_protocole_.C2.AB_it.C3.A9rable_.C2.BB\" title=\"Un des &#xE9;l&#xE9;ments ajout&#xE9;s par ECMAScript 6 n'est ni une nouvelle syntaxe ni un nouvel objet natif mais un protocole. Ce protocole peut &#xEA;tre impl&#xE9;ment&#xE9; par n'importe quel objet qui respecte certaines conventions.\">objet it\u00e9rable</a> (ce qui inclue les objets <a href=\"/fr/docs/Web/JavaScript/Reference/Objets_globaux/Array\" title=\"Les objets globaux Array sont des constructeurs pour tableaux, qui sont des objets de haut-niveau (en termes de complexit&#xE9; homme-machine) et qui sont semblables &#xE0; des listes.\"><code>Array</code></a>, <a href=\"/fr/docs/Web/JavaScript/Reference/Objets_globaux/Map\" title=\"L'objet&#xA0;Map repr&#xE9;sente un dictionnaire, autrement dit une carte de cl&#xE9;s/valeurs. N'importe quelle valeur valable en JavaScript (que ce soit les objets ou les valeurs de types primitifs) peut &#xEA;tre utilis&#xE9;e comme cl&#xE9; ou comme valeur.\"><code>Map</code></a>, <a href=\"/fr/docs/Web/JavaScript/Reference/Objets_globaux/Set\" title=\"L'objet Set (Ensemble en fran&#xE7;ais) permet de stocker des valeurs uniques, de n'importe quel type, que ce soit des valeurs d'un type primitif ou des objets.\"><code>Set</code></a>, l'objet <a href=\"/fr/docs/Web/JavaScript/Reference/Fonctions/arguments\" title=\"L'objet arguments est un objet, semblable &#xE0; un tableau, correspondant aux arguments pass&#xE9;s &#xE0; une fonction.\"><code>arguments</code></a>, etc.) et qui permet d'ex\u00e9cuter une instruction pour la valeur de chaque propri\u00e9t\u00e9.", "localization_tags": [], "locale": "fr", "last_edit": "2015-04-13T13:02:30", "review_tags": []}, {"title": "for...of", "url": "/ru/docs/Web/JavaScript/Reference/Statements/for...of", "tags": ["ECMAScript6", "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440", "\u042d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439", "JavaScript"], "summary": "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u00a0<code>for...of</code>\u00a0\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0446\u0438\u043a\u043b \u043e\u0431\u0445\u043e\u0434\u0430\u00a0<a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/iterable\">\u0438\u0442\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432</a>\u00a0(\u0432\u043a\u043b\u044e\u0447\u0430\u044f <a href=\"/ru/docs/Web/JavaScript/Reference/Global_Objects/Array\" title=\"&#x413;&#x43B;&#x43E;&#x431;&#x430;&#x43B;&#x44C;&#x43D;&#x44B;&#x439; &#x43E;&#x431;&#x44A;&#x435;&#x43A;&#x442; JavaScript Array&#xA0;&#x2014; &#x44D;&#x442;&#x43E; &#x43A;&#x43E;&#x43D;&#x441;&#x442;&#x440;&#x443;&#x43A;&#x442;&#x43E;&#x440; &#x434;&#x43B;&#x44F; &#x43C;&#x430;&#x441;&#x441;&#x438;&#x432;&#x43E;&#x432;, &#x43A;&#x43E;&#x442;&#x43E;&#x440;&#x44B;&#x435; &#x43D;&#x430; &#x432;&#x44B;&#x441;&#x43E;&#x43A;&#x43E;&#x43C; &#x443;&#x440;&#x43E;&#x432;&#x43D;&#x435; &#x43F;&#x440;&#x435;&#x434;&#x441;&#x442;&#x430;&#x432;&#x43B;&#x44F;&#x44E;&#x442; &#x441;&#x43E;&#x431;&#x43E;&#x439; &#x441;&#x43F;&#x438;&#x441;&#x43A;&#x43E;&#x43F;&#x43E;&#x434;&#x43E;&#x431;&#x43D;&#x44B;&#x435; &#x43E;&#x431;&#x44A;&#x435;&#x43A;&#x442;&#x44B;.\"><code>Array</code></a>,\u00a0<a href=\"/ru/docs/Web/JavaScript/Reference/Global_Objects/Map\" title=\"&#x41E;&#x431;&#x44A;&#x435;&#x43A;&#x442;&#xA0;Map&#xA0;&#x44F;&#x432;&#x43B;&#x44F;&#x435;&#x442;&#x441;&#x44F; &#x43F;&#x440;&#x43E;&#x441;&#x442;&#x44B;&#x43C; &#x430;&#x441;&#x441;&#x43E;&#x446;&#x438;&#x430;&#x442;&#x438;&#x432;&#x43D;&#x44B;&#x43C; &#x43C;&#x430;&#x441;&#x441;&#x438;&#x432;&#x43E;&#x43C;. &#x41B;&#x44E;&#x431;&#x44B;&#x435; &#x442;&#x438;&#x43F;&#x44B; (&#x43A;&#x430;&#x43A; &#x43E;&#x431;&#x44A;&#x435;&#x43A;&#x442;&#x44B;, &#x442;&#x430;&#x43A; &#x438; &#x43F;&#x440;&#x438;&#x43C;&#x438;&#x442;&#x438;&#x432;&#x44B;) &#x43C;&#x43E;&#x433;&#x443;&#x442; &#x431;&#x44B;&#x442;&#x44C; &#x438;&#x441;&#x43F;&#x43E;&#x43B;&#x44C;&#x437;&#x43E;&#x432;&#x430;&#x43D;&#x44B; &#x432; &#x43A;&#x430;&#x447;&#x435;&#x441;&#x442;&#x432;&#x435; &#x43A;&#x43B;&#x44E;&#x447;&#x430; &#x438;&#x43B;&#x438; &#x437;&#x43D;&#x430;&#x447;&#x435;&#x43D;&#x438;&#x44F;.\"><code>Map</code></a>, <a href=\"/ru/docs/Web/JavaScript/Reference/Global_Objects/Set\" title=\"&#x41E;&#x431;&#x44A;&#x435;&#x43A;&#x442;&#x44B;&#xA0;Set &#x43F;&#x43E;&#x437;&#x432;&#x43E;&#x43B;&#x44F;&#x44E;&#x442; &#x432;&#x430;&#x43C; &#x441;&#x43E;&#x445;&#x440;&#x430;&#x43D;&#x44F;&#x442;&#x44C; &#x443;&#x43D;&#x438;&#x43A;&#x430;&#x43B;&#x44C;&#x43D;&#x44B;&#x435; &#x437;&#x43D;&#x430;&#x447;&#x435;&#x43D;&#x438;&#x44F; &#x43B;&#x44E;&#x431;&#x43E;&#x433;&#x43E; &#x442;&#x438;&#x43F;&#x430;, &#x43A;&#x430;&#x43A; &#x43F;&#x440;&#x438;&#x43C;&#x438;&#x442;&#x438;&#x432;&#x44B;, &#x442;&#x430;&#x43A; &#x438; &#x434;&#x440;&#x443;&#x433;&#x438;&#x435; &#x442;&#x438;&#x43F;&#x44B; &#x43E;&#x431;&#x44A;&#x435;&#x43A;&#x442;&#x43E;&#x432;.\"><code>Set</code></a>, \u043e\u0431\u044a\u0435\u043a\u0442\u00a0<a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/arguments\">\u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432</a>\u00a0\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445), \u0432\u044b\u0437\u044b\u0432\u0430\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0430.", "localization_tags": [], "locale": "ru", "last_edit": "2014-11-19T12:11:50", "review_tags": ["editorial"]}, {"title": "for...of", "url": "/ca/docs/Web/JavaScript/Referencia/Sentencies/for...of", "tags": [], "summary": "La instrucci\u00f3 <code>for...of</code> crea un bucle que itera sobre <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/iterable\">objectes iterables</a> (incloent <a href=\"/ca/docs/Web/JavaScript/Referencia/Array\" title=\"Aquesta p&#xE0;gina encara no ha estat tradu&#xEF;da. Si us plau consideri contribuir-hi!\"><code>Array</code></a>,\u00a0<a href=\"/ca/docs/Web/JavaScript/Referencia/Objectes_standard/Map\" title=\"L'objecte Map &#xE9;s un simple mapa de parelles clau/valor. Qualsevol valor (tant objectes com primitive values) poden fer-se servir tant com a clau com a valor.\"><code>Map</code></a>, <a href=\"/ca/docs/Web/JavaScript/Referencia/Set\" title=\"Aquesta p&#xE0;gina encara no ha estat tradu&#xEF;da. Si us plau consideri contribuir-hi!\"><code>Set</code></a>, l'objecte <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/arguments\">arguments</a>, etc\u00e8tera), tot invocant un bloc de codi amb les instruccions a executar per a cada valor de la propietat.", "localization_tags": [], "locale": "ca", "last_edit": "2015-04-26T06:30:30", "review_tags": []}, {"title": "for...of", "url": "/ko/docs/Web/JavaScript/Reference/Statements/for...of", "tags": ["Statement", "ECMAScript6", "Experimental", "Exp\u00e9rimental", "JavaScript"], "summary": "<strong><code>for...of</code> \ubb38</strong>\uc740 <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/iterable\">\ubc18\ubcf5 \uac00\ub2a5\ud55c \uac1d\uccb4</a>(<a href=\"/ko/docs/Web/JavaScript/Reference/Global_Objects/Array\" title=\"&#xBC30;&#xC5F4;&#xC744; &#xC0AC;&#xC6A9;&#xD560; &#xC218; &#xC788;&#xAC8C; &#xD55C;&#xB2E4;.\"><code>Array</code></a>, <a href=\"/ko/docs/Web/JavaScript/Reference/Map\" title=\"The documentation about this has not yet been written; please consider contributing!\"><code>Map</code></a>, <a href=\"/ko/docs/Web/JavaScript/Reference/Set\" title=\"The documentation about this has not yet been written; please consider contributing!\"><code>Set</code></a>, <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/arguments\">arguments</a> \uac1d\uccb4 \ub4f1\uc744 \ud3ec\ud568)\uc5d0 \ubc18\ubcf5\uc744 \uc218\ud589\ud558\uace0, \uc0ac\uc6a9\uc790 \uc815\uc758 \ubc18\ubcf5 \ud6c4\ud06c\ub97c \ud638\ucd9c\ud558\ub294 \ub8e8\ud504\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. \uc0ac\uc6a9\uc790 \uc815\uc758 \ubc18\ubcf5 \ud6c4\ud06c\ub294 \uac01 \uc18d\uc131 \uac12\uc73c\ub85c \ud638\ucd9c\ub418\ub294 \uad6c\ubb38\uc73c\ub85c \uad6c\uc131\ub429\ub2c8\ub2e4.", "localization_tags": [], "locale": "ko", "last_edit": "2015-05-22T11:15:20", "review_tags": []}], "modified": "2015-06-25T21:56:46", "label": "for...of", "localization_tags": [], "url": "/zh-CN/docs/Web/JavaScript/Reference/Statements/for...of", "last_edit": "2015-04-18T00:46:00", "summary": "\u8be5\u8bed\u53e5\u7528\u6765\u904d\u5386\u4e00\u4e2a\u53ef\u8fed\u4ee3\u5bf9\u8c61(\u5305\u62ec<a href=\"../Global_Objects/Array\">\u6570\u7ec4</a>,\u7c7b\u6570\u7ec4\u5bf9\u8c61,<a href=\"../../../../../zh-cn/JavaScript/Guide/Iterators_and_Generators\" title=\"Iterators and generators\">\u8fed\u4ee3\u5668\u548c\u751f\u6210\u5668 </a>),\u9488\u5bf9\u6bcf\u4e2a\u5c5e\u6027\u7684\u5c5e\u6027\u503c,\u8c03\u7528\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7684\u8bed\u53e5\u5757.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "\u8bed\u6cd5", "title": "\u8bed\u6cd5"}, {"id": "\u4f8b\u5b50", "title": "\u4f8b\u5b50"}, {"id": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027", "title": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027"}, {"id": "\u76f8\u5173\u94fe\u63a5", "title": "\u76f8\u5173\u94fe\u63a5"}], "id": 2653, "review_tags": []}