{"json_modified": "2015-04-18T00:37:32.597067", "slug": "Web/JavaScript/Reference/Operators/Array_comprehensions", "tags": [], "locale": "zh-CN", "title": "\u6570\u7ec4\u63a8\u5bfc\u5f0f", "translations": [{"title": "Array comprehensions", "url": "/en-US/docs/Web/JavaScript/Reference/Operators/Array_comprehensions", "tags": ["Reference", "JavaScript", "R\u00e9f\u00e9rence", "ECMAScript7", "R\u00e9ference", "Operator"], "summary": "The array comprehension syntax is a JavaScript expression which allows you to quickly assemble a new array based on an existing one. Comprehensions exist in many programming languages and the upcoming ECMAScript 7 standard defines array comprehensions for JavaScript.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-11T09:30:05", "review_tags": []}, {"title": "Compr\u00e9hensions de tableau", "url": "/fr/docs/Web/JavaScript/Reference/Op%C3%A9rateurs/Compr%C3%A9hensions_de_tableau", "tags": ["Reference", "JavaScript", "R\u00e9f\u00e9rence", "ECMAScript7", "R\u00e9ference", "Operator"], "summary": "La syntaxe de compr\u00e9hension de tableau est une expression JavaScript permettant de construire rapidement un nouveau tableau \u00e0 partir d'un tableau existant. Ces compr\u00e9hensions existent dans de nombreux langages de programmation et le standard \u00e0 venir ECMAScript 7 d\u00e9finit les compr\u00e9hension de tableaux en JavaScript.", "localization_tags": [], "locale": "fr", "last_edit": "2015-04-11T13:45:22", "review_tags": []}, {"title": "Array comprehensions", "url": "/pt-BR/docs/Web/JavaScript/Reference/Operators/Array_comprehensions", "tags": ["Array", "Operador", "ECMAScript7", "JavaScript"], "summary": "A sintaxe de\u00a0array comprehension\u00a0trata-se de uma express\u00e3o JavaScript que lhe permite rapidamente montar um novo array com base em outro j\u00e1 existente. As comprehensions j\u00e1 existem em v\u00e1ris outras linguagens e estar\u00e3o ent\u00e3o presentes no padr\u00e3o ECMAScript 7.", "localization_tags": [], "locale": "pt-BR", "last_edit": "2014-11-19T11:55:08", "review_tags": []}], "modified": "2015-04-18T00:37:30", "label": "\u6570\u7ec4\u63a8\u5bfc\u5f0f", "localization_tags": [], "url": "/zh-CN/docs/Web/JavaScript/Reference/Operators/Array_comprehensions", "last_edit": "2014-11-19T11:54:09", "summary": "\u6570\u7ec4\u63a8\u5bfc\u5f0f\u662f\u4e00\u79cd\u65b0\u7684 JavaScript \u8868\u8fbe\u5f0f\u8bed\u6cd5\uff0c\u4f7f\u7528\u5b83\uff0c\u4f60\u53ef\u4ee5\u5728\u4e00\u4e2a\u539f\u6709\u6570\u7ec4\u7684\u57fa\u7840\u4e0a\u5feb\u901f\u7684\u6784\u9020\u51fa\uff08\u63a8\u5bfc\u51fa\uff09\u4e00\u4e2a\u65b0\u7684\u6570\u7ec4\u3002", "sections": [{"id": "Quick_Links", "title": "JavaScript \u6559\u7a0b: JavaScript \u6307\u5357 Introduction Grammar and types Control flow and error handling Loops and iteration Functions Expressions and operators Numbers and dates Text formatting Regular expressions Indexed collections Keyed collections Working with objects Details of the object model Iterators and generators Meta programming \u5feb\u901f\u5165\u95e8 JavaScript \u57fa\u7840\u77e5\u8bc6 JavaScript \u77e5\u8bc6\u6982\u8981 Javascript \u9762\u5411\u5bf9\u8c61\u7f16\u7a0b \u4e2d\u7ea7\u6559\u7a0b \u6df1\u5165 JavaScript JavaScript \u6570\u636e\u7ed3\u6784 \u5982\u4f55\u6b63\u786e\u5224\u65ad\u76f8\u7b49\u6027 Closures \u9ad8\u7ea7 \u7ee7\u627f\u548c\u539f\u578b\u94fe \u4e25\u683c\u6a21\u5f0f JavaScript \u7c7b\u578b\u5316\u6570\u7ec4 \u5185\u5b58\u7ba1\u7406 Concurrency model and Event Loop \u5f15\u7528: \u5185\u7f6e\u5bf9\u8c61 JavaScript \u6807\u51c6\u5e93 Array ArrayBuffer Boolean DataView [Translate] Date Error EvalError Float32Array [Translate] Float64Array [Translate] Function Generator [Translate] GeneratorFunction [Translate] Infinity Int16Array [Translate] Int32Array [Translate] Int8Array [Translate] InternalError [Translate] Intl [Translate] Intl.Collator [Translate] Intl.DateTimeFormat [Translate] Intl.NumberFormat [Translate] Iterator [Translate] JSON Map Math NaN Number Object ParallelArray Promise Proxy RangeError [Translate] ReferenceError [Translate] Reflect [Translate] RegExp Set StopIteration [Translate] String Symbol SyntaxError TypeError [Translate] TypedArray URIError [Translate] Uint16Array [Translate] Uint32Array Uint8Array [Translate] Uint8ClampedArray [Translate] WeakMap WeakSet decodeURI decodeURIComponent() encodeURI() encodeURIComponent() escape() eval() isFinite() isNaN() null parseFloat parseInt undefined unescape() [Translate] uneval() [Translate] \u8868\u8fbe\u5f0f\u548c\u8fd0\u7b97\u7b26 \u8fd0\u7b97\u7b26 \u7b97\u672f\u8fd0\u7b97\u7b26 \u6570\u7ec4\u63a8\u5bfc\u5f0f \u8d4b\u503c\u8fd0\u7b97\u7b26 \u6309\u4f4d\u64cd\u4f5c\u7b26 \u9017\u53f7\u64cd\u4f5c\u7b26 Comparison operators [Translate] Conditional (ternary) Operator [Translate] \u89e3\u6784\u8d4b\u503c\uff08Destructuring assignment\uff09 Expression closures [Translate] Generator comprehensions [Translate] \u5706\u62ec\u53f7\u8fd0\u7b97\u7b26 Legacy generator function expression [Translate] \u903b\u8f91\u8fd0\u7b97\u7b26 Object initializer [Translate] \u8fd0\u7b97\u7b26\u4f18\u5148\u7ea7 Property accessors [Translate] \u5c55\u5f00\u8fd0\u7b97\u7b26 class expression [Translate] delete \u51fd\u6570\u8868\u8fbe\u5f0f function* expression [Translate] in instanceof new\u8fd0\u7b97\u7b26 super this typeof void \u8fd0\u7b97\u7b26 yield yield* \u8bed\u53e5\u548c\u58f0\u660e Statements Legacy generator function [Translate] block break class [Translate] const continue debugger do...while empty export [Translate] for [Translate] for each...in for...in for...of function \u751f\u6210\u5668\uff08generator\uff09 if...else import [Translate] label let return switch throw try...catch [Translate] var while with \u51fd\u6570 \u51fd\u6570\u548c\u51fd\u6570\u4f5c\u7528\u57df arguments \u7bad\u5934\u51fd\u6570 \u9ed8\u8ba4\u53c2\u6570\u503c \u65b9\u6cd5\u7684\u5b9a\u4e49 \u5269\u4f59\u53c2\u6570 getter setter Classes Classes [Translate] constructor [Translate] extends [Translate] static [Translate] \u66f4\u591a \u8bcd\u6cd5\u6587\u6cd5 JavaScript \u6570\u636e\u7ed3\u6784 \u5c5e\u6027\u7684\u53ef\u679a\u4e3e\u6027\u548c\u6240\u6709\u6743 Iteration protocols \u4e25\u683c\u6a21\u5f0f \u5207\u6362\u5230\u4e25\u683c\u6a21\u5f0f \u6a21\u677f\u5b57\u7b26\u4e32 \u5df2\u5e9f\u5f03\u7684\u7279\u6027 New in JavaScript New in JavaScript Mozilla\u5bf9ECMAScript 5\u7684\u652f\u6301 Firefox \u4e2d ECMAScript 6 \u7684\u5b9e\u73b0\u60c5\u51b5 ECMAScript 7 support in Mozilla [Translate] Firefox JavaScript changelog [Translate] New in JavaScript 1.1 [Translate] New in JavaScript 1.2 [Translate] New in JavaScript 1.3 [Translate] New in JavaScript 1.4 [Translate] JavaScript 1.5 \u7684\u65b0\u7279\u6027 JavaScript 1.6 \u7684\u65b0\u7279\u6027 New in JavaScript 1.7 New in JavaScript 1.8 New in JavaScript 1.8.1 [Translate] JavaScript 1.8.5 \u7684\u65b0\u7279\u6027 \u6587\u6863: \u5e38\u7528\u5217\u8868 \u5168\u90e8\u9875\u9762\u7d22\u5f15 \u65b9\u6cd5\u7d22\u5f15 \u5c5e\u6027\u7d22\u5f15 \u62e5\u6709 \"JavaScript\" \u6807\u7b7e\u7684\u9875\u9762 \u8d21\u732e JavaScript \u6587\u6863\u7ffb\u8bd1\u72b6\u6001 MDN \u9879\u76ee"}, {"id": ".E6.A6.82.E8.BF.B0", "title": "\u6982\u8ff0"}, {"id": ".E8.AF.AD.E6.B3.95", "title": "\u8bed\u6cd5"}, {"id": ".E6.8F.8F.E8.BF.B0", "title": "\u63cf\u8ff0"}, {"id": ".E7.A4.BA.E4.BE.8B", "title": "\u793a\u4f8b"}, {"id": ".E5.9F.BA.E6.9C.AC.E7.9A.84.E6.95.B0.E7.BB.84.E6.8E.A8.E5.AF.BC.E5.BC.8F.E5.86.99.E6.B3.95", "title": "\u57fa\u672c\u7684\u6570\u7ec4\u63a8\u5bfc\u5f0f\u5199\u6cd5"}, {"id": ".E5.B8.A6.E6.9C.89_if_.E8.AF.AD.E5.8F.A5.E7.9A.84.E6.95.B0.E7.BB.84.E6.8E.A8.E5.AF.BC.E5.BC.8F", "title": "\u5e26\u6709 if \u8bed\u53e5\u7684\u6570\u7ec4\u63a8\u5bfc\u5f0f"}, {"id": ".E7.94.A8.E6.95.B0.E7.BB.84.E6.8E.A8.E5.AF.BC.E5.BC.8F.E6.AF.94.E7.94.A8.E6.95.B0.E7.BB.84.E7.9A.84_map.E3.80.81filter_.E6.96.B9.E6.B3.95.E6.9B.B4.E7.AE.80.E6.B4.81", "title": "\u7528\u6570\u7ec4\u63a8\u5bfc\u5f0f\u6bd4\u7528\u6570\u7ec4\u7684 map \u3001 filter \u65b9\u6cd5\u66f4\u7b80\u6d01"}, {"id": ".E5.B8.A6.E6.9C.89.E4.B8.A4.E4.B8.AA.E6.95.B0.E7.BB.84.E7.9A.84.E6.95.B0.E7.BB.84.E6.8E.A8.E5.AF.BC.E5.BC.8F", "title": "\u5e26\u6709\u4e24\u4e2a\u6570\u7ec4\u7684\u6570\u7ec4\u63a8\u5bfc\u5f0f"}, {"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": "SpiderMonkey_.E7.9B.AE.E5.89.8D.E5.AE.9E.E7.8E.B0.E7.9A.84.E6.8E.A8.E5.AF.BC.E5.BC.8F.E7.89.B9.E6.80.A7.E5.AD.98.E5.9C.A8.E7.9A.84.E9.97.AE.E9.A2.98", "title": "SpiderMonkey \u76ee\u524d\u5b9e\u73b0\u7684\u63a8\u5bfc\u5f0f\u7279\u6027\u5b58\u5728\u7684\u95ee\u9898"}, {"id": "SpiderMonkey_.E7.9B.AE.E5.89.8D.E5.AE.9E.E7.8E.B0.E7.9A.84_ES6_.E6.8E.A8.E5.AF.BC.E5.BC.8F.E5.92.8C.E4.B9.8B.E5.89.8D.E5.AE.9E.E7.8E.B0.E7.9A.84_ES4_.E6.8E.A8.E5.AF.BC.E5.BC.8F.EF.BC.88JS1.7.2FJS1.8.EF.BC.89.E7.9A.84.E5.8C.BA.E5.88.AB", "title": "SpiderMonkey \u76ee\u524d\u5b9e\u73b0\u7684 ES6 \u63a8\u5bfc\u5f0f\u548c\u4e4b\u524d\u5b9e\u73b0\u7684 ES4 \u63a8\u5bfc\u5f0f\uff08JS1.7/JS1.8\uff09\u7684\u533a\u522b"}, {"id": "See_also", "title": "\u76f8\u5173\u94fe\u63a5"}], "id": 111857, "review_tags": []}