{"json_modified": "2015-04-18T00:39:53.224599", "slug": "Web/JavaScript/Reference/Operators/yield", "tags": [], "locale": "zh-CN", "title": "yield", "translations": [{"title": "yield", "url": "/en-US/docs/Web/JavaScript/Reference/Operators/yield", "tags": ["Generators", "Experimental", "Exp\u00e9rimental", "JavaScript", "ECMAScript6", "Operator", "Iterator"], "summary": "The yield
keyword is used to pause and resume a generator function (function*
or legacy generator function).", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-11T10:43:47", "review_tags": []}, {"title": "yield", "url": "/ja/docs/JavaScript/Reference/Operators/yield", "tags": ["NeedsContent", "JavaScript Reference", "Generators", "JavaScript"], "summary": "yield
\u30ad\u30fc\u30ef\u30fc\u30c9\u306f\u3001\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u306e\u4e00\u6642\u505c\u6b62\u3001\u518d\u958b\u306b\u7528\u3044\u308b\u3082\u306e\u3067\u3059\u3002", "localization_tags": ["inprogress"], "locale": "ja", "last_edit": "2015-04-16T05:11:43", "review_tags": []}, {"title": "yield", "url": "/fr/docs/Web/JavaScript/Reference/Op%C3%A9rateurs/yield", "tags": ["Generators", "Reference", "R\u00e9ference", "Experimental", "R\u00e9f\u00e9rence", "Exp\u00e9rimental", "JavaScript", "ECMAScript6", "Iterators", "Operator"], "summary": "Le mot-cl\u00e9 yield
est utilis\u00e9 afin d'interrompre eu de reprendre un g\u00e9n\u00e9rateur (une instruction (function*
ou un g\u00e9n\u00e9rateur historique).", "localization_tags": [], "locale": "fr", "last_edit": "2015-04-11T12:33:34", "review_tags": []}, {"title": "yield", "url": "/ru/docs/Web/JavaScript/Reference/Operators/yield", "tags": ["\u042d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439", "\u0418\u0442\u0435\u0440\u0430\u0442\u043e\u0440\u044b", "\u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b", "JavaScript", "ECMAScript6", "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440"], "summary": "\u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e\u00a0yield
\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u0432\u043e\u0437\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438-\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430.", "localization_tags": [], "locale": "ru", "last_edit": "2014-11-24T12:17:09", "review_tags": ["technical", "editorial"]}, {"title": "yield", "url": "/ca/docs/Web/JavaScript/Referencia/Operadors/yield", "tags": [], "summary": "La paraula clau yield
s'utilitza per a pausar i reprendre una funci\u00f3 generadora (function*
o b\u00e9 una funci\u00f3 generadora obsoleta).", "localization_tags": [], "locale": "ca", "last_edit": "2015-03-09T06:26:23", "review_tags": ["editorial"]}], "modified": "2015-04-18T00:39:50", "label": "yield", "localization_tags": [], "url": "/zh-CN/docs/Web/JavaScript/Reference/Operators/yield", "last_edit": "2015-01-19T05:45:59", "summary": "yield
\u5173\u952e\u5b57\u7528\u6765\u6682\u505c\u548c\u7ee7\u7eed\u4e00\u4e2a\u751f\u6210\u5668\u51fd\u6570 (function*
or legacy generator).", "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": "Syntax", "title": "\u8bed\u6cd5"}, {"id": ".E6.8F.8F.E8.BF.B0", "title": "\u63cf\u8ff0"}, {"id": "Examples", "title": "\u793a\u4f8b"}, {"id": "Specifications", "title": "\u89c4\u8303"}, {"id": "Browser_compatibility", "title": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027"}, {"id": "See_also", "title": "\u76f8\u5173\u94fe\u63a5"}], "id": 88463, "review_tags": []}