aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/archive/web/javascript
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/archive/web/javascript
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/archive/web/javascript')
-rw-r--r--files/zh-cn/archive/web/javascript/handler.enumerate/index.html114
-rw-r--r--files/zh-cn/archive/web/javascript/index.html12
-rw-r--r--files/zh-cn/archive/web/javascript/legacy_generator_function/index.html54
-rw-r--r--files/zh-cn/archive/web/javascript/legacy_generator_function_statement/index.html65
-rw-r--r--files/zh-cn/archive/web/javascript/microsoft_extensions/activexobject/index.html92
-rw-r--r--files/zh-cn/archive/web/javascript/microsoft_extensions/date.getvardate/index.html40
-rw-r--r--files/zh-cn/archive/web/javascript/microsoft_extensions/index.html70
-rw-r--r--files/zh-cn/archive/web/javascript/reflect.enumerate/index.html120
8 files changed, 567 insertions, 0 deletions
diff --git a/files/zh-cn/archive/web/javascript/handler.enumerate/index.html b/files/zh-cn/archive/web/javascript/handler.enumerate/index.html
new file mode 100644
index 0000000000..9a68adbf65
--- /dev/null
+++ b/files/zh-cn/archive/web/javascript/handler.enumerate/index.html
@@ -0,0 +1,114 @@
+---
+title: handler.enumerate()
+slug: Archive/Web/JavaScript/handler.enumerate
+translation_of: Archive/Web/JavaScript/handler.enumerate
+---
+<div>{{JSRef}} {{obsolete_header}}</div>
+
+<p>代理方法<strong><code>handler.enumerate()</code></strong>决定了被代理对象在{{jsxref("Statements/for...in", "for...in")}}中的行为。不过这个方法已经在ES2016标准中被移除了。</p>
+
+<h2 id="语法">语法</h2>
+
+<pre class="brush: js notranslate">var p = new Proxy(target, {
+ enumerate(target) {
+ }
+});
+</pre>
+
+<h3 id="参数">参数</h3>
+
+<p>下列参数将会被用以调用 <code>enumerate</code> 方法。this将会指向处理器对象。</p>
+
+<dl>
+ <dt><code>target</code></dt>
+ <dd>被代理的目标对象。</dd>
+</dl>
+
+<h3 id="Return_value">Return value</h3>
+
+<p>该方法应当返回一个<a href="/zh-CN/docs/Web/JavaScript/Guide/The_Iterator_protocol">迭代器</a>对象。</p>
+
+<h2 id="描述">描述</h2>
+
+<p><code><strong>handler.enumerate</strong></code> 方法决定了被代理对象在{{jsxref("Statements/for...in", "for...in")}}时的行为。</p>
+
+<h3 id="触发条件">触发条件</h3>
+
+<p>这些操作可以触发这个方法。</p>
+
+<ul>
+ <li>for...in: <code>for (var name in proxy) {...}</code></li>
+ <li>{{jsxref("Reflect.enumerate()")}}</li>
+</ul>
+
+<h3 id="Invariants">Invariants</h3>
+
+<p>If the following invariants are violated, the proxy will throw a {{jsxref("TypeError")}}:</p>
+
+<ul>
+ <li>The <code>enumerate</code> method must return an object.</li>
+</ul>
+
+<h2 id="Examples">Examples</h2>
+
+<p>The following code traps {{jsxref("Statements/for...in", "for...in")}} statements.</p>
+
+<pre class="brush: js notranslate">var p = new Proxy({}, {
+ enumerate(target) {
+ console.log('called');
+ return ['a', 'b', 'c'][Symbol.iterator]();
+ }
+});
+
+for (var x in p) { // "called"
+ console.log(x); // "a"
+} // "b"
+ // "c"
+</pre>
+
+<p>The following code violates the invariant.</p>
+
+<pre class="brush: js notranslate">var p = new Proxy({}, {
+ enumerate(target) {
+ return 1;
+ }
+});
+
+for (var x in p) {} // TypeError is thrown
+</pre>
+
+<p>Note: Both examples make use of the shorthand syntax for <a href="/en-US/docs/Web/JavaScript/Reference/Functions/Method_definitions">method definitions</a>.</p>
+
+<h2 id="Specifications">Specifications</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('ES2015', '#sec-proxy-object-internal-methods-and-internal-slots-enumerate', '[[Enumerate]]')}}</td>
+ <td>{{Spec2('ES2015')}}</td>
+ <td>Initial definition. Removed in ECMAScript 2016.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility">Browser compatibility</h2>
+
+<div>
+
+
+<p>{{Compat("javascript.builtins.Proxy.handler.enumerate")}}</p>
+</div>
+
+<h2 id="See_also">See also</h2>
+
+<ul>
+ <li>{{jsxref("Proxy")}}</li>
+ <li>{{jsxref("Proxy.handler", "handler")}}</li>
+ <li>{{jsxref("Statements/for...in", "for...in")}} statements</li>
+ <li>{{jsxref("Reflect.enumerate()")}}</li>
+</ul>
diff --git a/files/zh-cn/archive/web/javascript/index.html b/files/zh-cn/archive/web/javascript/index.html
new file mode 100644
index 0000000000..4687b7bf23
--- /dev/null
+++ b/files/zh-cn/archive/web/javascript/index.html
@@ -0,0 +1,12 @@
+---
+title: JavaScript
+slug: Archive/Web/JavaScript
+translation_of: Archive/Web/JavaScript
+---
+<div class="hidden">{{JSRef}}</div>
+
+<p>{{Obsolete_Header}}</p>
+
+<p class="summary">Obsolete JavaScript features and unmaintained docs</p>
+
+<p>{{SubpagesWithSummaries}}</p>
diff --git a/files/zh-cn/archive/web/javascript/legacy_generator_function/index.html b/files/zh-cn/archive/web/javascript/legacy_generator_function/index.html
new file mode 100644
index 0000000000..d4d213cc98
--- /dev/null
+++ b/files/zh-cn/archive/web/javascript/legacy_generator_function/index.html
@@ -0,0 +1,54 @@
+---
+title: 旧式生成器函数
+slug: Archive/Web/JavaScript/Legacy_generator_function
+tags:
+ - 生成器函数
+translation_of: Archive/Web/JavaScript/Legacy_generator_function
+---
+<div class="warning">.旧式生成器函数是一个SpiderMonkey专有特性,将在未来移除。从未来考虑,建议使用{{jsxref("Operators/function*", "function* 表达式")}}</div>
+
+<div>{{jsSidebar("Operators")}}</div>
+
+<p><strong><code>function</code></strong> 关键字可以用于在表达式中定义旧式的生成器函数。为使定义的函数为一个旧式的生成器函数,该函数的函数体中需要至少包含一个 {{jsxref("Operators/yield", "yield")}} 表达式。</p>
+
+<h2 id="语法">语法</h2>
+
+<pre class="syntaxbox">function [<em>name</em>]([<em>param1</em>[, <em>param2[</em>, ..., <em>paramN</em>]]]) {
+ <em>statements</em>
+}</pre>
+
+<h3 id="参数">参数</h3>
+
+<dl>
+ <dt><code>name</code></dt>
+ <dd>函数名。 该参数可以被省略, 这种情况下将创建一个<em>匿名函数 (anonymous)</em>. 此名字仅可在函数体内部引用。</dd>
+ <dt><code>paramN</code></dt>
+ <dd>将被传入此函数的一个参数。一个函数可以最多拥有255个参数。</dd>
+ <dt><code>statements</code></dt>
+ <dd>构成函数体的表达式。在表达式中需要至少包含一个 {{jsxref("Operators/yield", "yield")}} 表达式。</dd>
+</dl>
+
+<h2 id="描述">描述</h2>
+
+<p>关于此语法的用法说明,参见 <a href="/en-US/docs/JavaScript/Guide/Iterators_and_Generators">迭代器 (Iterators) 与生成器 (Generators)</a> 页面。</p>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+<p>Supported nowhere</p>
+
+<h2 id="相关链接">相关链接</h2>
+
+<ul>
+ <li>{{jsxref("Generator","生成器 (Generator)")}}</li>
+ <li><a href="/en-US/docs/Web/JavaScript/Reference/Statements/Legacy_generator_function">旧式生成器函数</a></li>
+ <li><a href="/en-US/docs/Web/JavaScript/Guide/The_legacy_Iterator_protocol">旧式迭代器协议</a></li>
+ <li>{{jsxref("Operators/yield", "yield")}}</li>
+ <li><a href="/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope">函数与函数作用域</a></li>
+ <li>{{jsxref("Statements/function", "function")}}</li>
+ <li>{{jsxref("Operators/function", "function 表达式")}}</li>
+ <li>{{jsxref("Function", "函数")}}</li>
+ <li>{{jsxref("Statements/function*", "function*")}}</li>
+ <li>{{jsxref("Operators/function*", "function* 表达式")}}</li>
+ <li>{{jsxref("GeneratorFunction","生成器 (Generator) 函数")}}</li>
+ <li><a href="/en-US/docs/Web/JavaScript/Guide/The_Iterator_protocol">迭代器 (Iterator) 协议 </a></li>
+</ul>
diff --git a/files/zh-cn/archive/web/javascript/legacy_generator_function_statement/index.html b/files/zh-cn/archive/web/javascript/legacy_generator_function_statement/index.html
new file mode 100644
index 0000000000..e8c8f209a9
--- /dev/null
+++ b/files/zh-cn/archive/web/javascript/legacy_generator_function_statement/index.html
@@ -0,0 +1,65 @@
+---
+title: 遗留的生成器函数
+slug: Archive/Web/JavaScript/Legacy_generator_function_statement
+tags:
+ - JavaScript
+ - 参考
+ - 过时
+ - 非标准
+translation_of: Archive/Web/JavaScript/Legacy_generator_function_statement
+---
+<div>{{JSSidebar("Statements")}}{{Non-standard_Header}}{{Obsolete_Header("gecko58")}}
+<div class="warning">
+<p>遗留的生成器函数是 SpiderMonkey 专有特性,已在 Firefox 58+ 中被移除。请考虑使用 {{JSxRef("Statements/function*", "function*")}}。</p>
+</div>
+
+<p><strong>遗留的生成器函数声明</strong>使用特殊的参数声明遗留的生成器函数。</p>
+
+<p>也可以使用带有 <code>functionBody</code>、至少一个 {{jsxref("Operators/yield", "yield")}} 表达式,和{{jsxref("Operators/Legacy_generator_function", "遗留的生成器函数表达式")}},配合 {{JSxRef("Function")}} 构造器,来定义遗留的生成器函数。</p>
+
+<h2 id="语法">语法</h2>
+
+<pre class="syntaxbox">function <em>name</em>([<em>param</em>,[, <em>param</em>,[..., <em>param</em>]]]) {
+ [<em>statements</em>]
+}
+</pre>
+
+<dl>
+ <dt><code>name</code></dt>
+ <dd>函数名。</dd>
+</dl>
+
+<dl>
+ <dt><code>param</code></dt>
+ <dd>传入函数的参数名,一个函数最多有 255 个参数。</dd>
+</dl>
+
+<dl>
+ <dt><code>statements</code></dt>
+ <dd>构成函数体的语句。应至少含有一个 {{jsxref("Operators/yield", "yield")}} 表达式。</dd>
+</dl>
+
+<h2 id="描述">描述</h2>
+
+<p>用法概述可在<a href="/zh-CN/docs/JavaScript/Guide/Iterators_and_Generators">迭代器和生成器</a>页面上查看。</p>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+Supported nowhere.
+
+<h2 id="参考">参考</h2>
+
+<ul>
+ <li>{{jsxref("Generator")}}</li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Operators/Legacy_generator_function">遗留的函数生成器表达式</a></li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/The_legacy_Iterator_protocol">遗留的迭代器协议</a></li>
+ <li>{{jsxref("Operators/yield", "yield")}}</li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Reference/Functions_and_function_scope">函数和函数作用域</a></li>
+ <li>{{jsxref("Statements/function", "function")}}</li>
+ <li>{{jsxref("Operators/function", "function 表达式")}}</li>
+ <li>{{jsxref("Function")}}</li>
+ <li>{{jsxref("Statements/function*", "function*")}}</li>
+ <li>{{jsxref("Operators/function*", "function* 表达式")}}</li>
+ <li>{{jsxref("GeneratorFunction")}}</li>
+ <li><a href="/zh-CN/docs/Web/JavaScript/Guide/The_Iterator_protocol">迭代器协议</a></li>
+</ul>
+</div>
diff --git a/files/zh-cn/archive/web/javascript/microsoft_extensions/activexobject/index.html b/files/zh-cn/archive/web/javascript/microsoft_extensions/activexobject/index.html
new file mode 100644
index 0000000000..b275c9676b
--- /dev/null
+++ b/files/zh-cn/archive/web/javascript/microsoft_extensions/activexobject/index.html
@@ -0,0 +1,92 @@
+---
+title: ActiveXObject
+slug: Archive/Web/JavaScript/Microsoft_Extensions/ActiveXObject
+translation_of: Archive/Web/JavaScript/Microsoft_Extensions/ActiveXObject
+---
+<div>{{JSRef}}</div>
+
+<div class="warning"><strong>警告</strong>: 该对象是微软的私有拓展名, 只在微软的IE浏览器上支持, 在win8的应用商店下载的其他浏览器应用也不被支持.</div>
+
+<p><strong><code>ActiveXObject</code> </strong>启用会返回一个自动化对象的引用</p>
+
+<p>这个对象只能用于实例化自动化对象,它没有任何成员对象.</p>
+
+<h2 id="语法">语法 </h2>
+
+<pre><code>let newObj = new ActiveXObject(<em>servername, </em><em>typename</em>[, <em>location</em>])
+</code></pre>
+
+<h3 id="参数">参数</h3>
+
+<dl>
+ <dt><code>servername</code></dt>
+ <dd>提供对象的应用程序的名称。</dd>
+ <dt><code>typename</code></dt>
+ <dd>要创建的对象的类型或类。</dd>
+ <dt><code>location</code> {{optional_inline}}</dt>
+ <dd>要创建对象的网络服务器的名称。</dd>
+</dl>
+
+<h2 id="备注">备注</h2>
+
+<p>自动化服务器提供至少一种类型的对象。例如,文字处理应用程序可以提供应用程序对象、文档对象和工具栏对象。</p>
+
+<p>您可以在<code>HKEY_CLASSES_ROOT</code>注册注册表项中识别主机PC上的<code>servername.typename的</code>值。下面是您可以找到的一些示例,它们要取决于你的电脑安装了哪些程序:</p>
+
+<ul>
+ <li>
+ <p>Excel.Application</p>
+ </li>
+ <li>
+ <p>Excel.Chart</p>
+ </li>
+ <li>
+ <p>Scripting.FileSystemObject</p>
+ </li>
+ <li>
+ <p>WScript.Shell</p>
+ </li>
+ <li>
+ <p>Word.Document</p>
+ </li>
+</ul>
+
+<div class="warning">
+<p><strong>注意:</strong> ActiveX 对象可能会出现安全问题。要使用<code>ActiveXObject</code>, 你可能需要调整IE浏览器的相关安全区域的安全设置。比如说,对于本地局域网,你通常需要将自定义设置更改为"对未标记为可安全执行脚本ActiveX控件执行初始化并执行脚本"。</p>
+</div>
+
+<p>To identify members of an automation object that you can use in your code, you may need to use a COM object browser, such as the <a href="http://msdn.microsoft.com/library/d0kh9f4c.aspx">OLE/COM Object Viewer</a>, if no reference documentation is available for the Automation object.</p>
+
+<p>To create an Automation object, assign the new <code>ActiveXObject</code> to an object variable:</p>
+
+<pre class="brush: js">var ExcelApp = new ActiveXObject("Excel.Application");
+var ExcelSheet = new ActiveXObject("Excel.Sheet");
+</pre>
+
+<p>This code starts the application creating the object (in this case, a Microsoft Excel worksheet). Once an object is created, you refer to it in code using the object variable you defined. In the following example, you access properties and methods of the new object using the object variable <code>ExcelSheet</code> and other Excel objects, including the application object and the <code>ActiveSheet.Cells</code> collection.</p>
+
+<pre class="brush: js">// Make Excel visible through the Application object.
+ExcelSheet.Application.Visible = true;
+// Place some text in the first cell of the sheet.
+ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column A, row 1";
+// Save the sheet.
+ExcelSheet.SaveAs("C:\\TEST.XLS");
+// Close Excel with the Quit method on the Application object.
+ExcelSheet.Application.Quit();
+</pre>
+
+<h2 id="Requirements">Requirements</h2>
+
+<p>Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards, Internet Explorer 10 standards, Internet Explorer 11 standards. Not supported in Windows 8.x Store apps.</p>
+
+<div class="note">
+<p><strong>Note:</strong> Creating an <code>ActiveXObject</code> on a remote server is not supported in Internet Explorer 9 standards mode, Internet Explorer 10 standards mode, Internet Explorer 11 standards mode, and Windows Store apps or later.</p>
+</div>
+
+<h2 id="See_also">See also</h2>
+
+<ul>
+ <li><a href="/en-US/docs/Web/JavaScript/Microsoft_JavaScript_extensions">Microsoft JavaScript extensions</a></li>
+ <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Microsoft_JavaScript_extensions/GetObject">GetObject Function</a></li>
+ <li><a href="http://code.msdn.microsoft.com/Unique-Authentication-f32d2da0">Unique authentication using Magic of HTML5/WCF sample app</a></li>
+</ul>
diff --git a/files/zh-cn/archive/web/javascript/microsoft_extensions/date.getvardate/index.html b/files/zh-cn/archive/web/javascript/microsoft_extensions/date.getvardate/index.html
new file mode 100644
index 0000000000..3587d44b2d
--- /dev/null
+++ b/files/zh-cn/archive/web/javascript/microsoft_extensions/date.getvardate/index.html
@@ -0,0 +1,40 @@
+---
+title: Date.getVarDate()
+slug: Archive/Web/JavaScript/Microsoft_Extensions/Date.getVarDate
+translation_of: Archive/Web/JavaScript/Microsoft_Extensions/Date.getVarDate
+---
+<div><font><font>{{JSRef(“ Global_Objects”,“ Date”)}} {{Non-standard_Header}} {{Obsolete_Header}}</font></font>
+<div class="warning"><strong><font><font>警告:  </font></font></strong><span style="font-size: 1.125rem;"><font><font>仅Internet Explorer支持此方法。</font></font></span></div>
+</div>
+
+<p><font><font>该</font></font><strong><code>getVarDate</code><font><font>方法</font></font></strong><code>VT_DATE</code><font><font>从{{JSxRef(“ Date”)}}对象</font><font>返回</font><font>值。</font></font></p>
+
+<h2 id="句法"><font><font>句法</font></font></h2>
+
+<pre class="notranslate"><code>dateObj.getVarDate()
+</code></pre>
+
+<h3 id="参量"><font><font>参量</font></font></h3>
+
+<p><font><font>必需的  </font></font><code>dateObj</code><font><font> 引用是一个  </font></font><code>Date</code><font><font> 对象。</font></font></p>
+
+<h3 id="返回值"><font><font>返回值</font></font></h3>
+
+<p><font><font>返回VT_DATE值。</font></font></p>
+
+<h3 id="备注"><font><font>备注</font></font></h3>
+
+<p><code>getVarDate()</code><font><font>当JavaScript代码与COM对象,ActiveX对象或其他接受并返回VT_DATE格式的日期值的对象交互时,使用</font><font>此  </font><font>方法。</font><font>这些包括Visual Basic和Visual Basic脚本版(VBScript)中的对象。</font><font>返回值的实际格式取决于区域设置。</font></font></p>
+
+<h2 id="要求"><font><font>要求</font></font></h2>
+
+<p><font><font>在以下文档模式中受支持:怪癖,Internet Explorer 6标准,Internet Explorer 7标准,Internet Explorer 8标准,Internet Explorer 9标准和Internet Explorer 10标准。</font><font>Windows 8.x商店应用程序不支持。</font></font></p>
+
+<p><strong><font><font>适用于</font></font></strong><font><font>:  </font></font><a href="https://docs.microsoft.com/en-us/scripting/javascript/reference/date-object-javascript"><font><font>Date对象</font></font></a></p>
+
+<h2 id="也可以看看"><font><font>也可以看看</font></font></h2>
+
+<ul>
+ <li><font><font>{{JSxRef(“ Date.getDate()”)}}</font></font></li>
+ <li><font><font>{{JSxRef(“ Date.parse()”)}}</font></font></li>
+</ul>
diff --git a/files/zh-cn/archive/web/javascript/microsoft_extensions/index.html b/files/zh-cn/archive/web/javascript/microsoft_extensions/index.html
new file mode 100644
index 0000000000..a128cb7caf
--- /dev/null
+++ b/files/zh-cn/archive/web/javascript/microsoft_extensions/index.html
@@ -0,0 +1,70 @@
+---
+title: Microsoft JavaScript extensions
+slug: Archive/Web/JavaScript/Microsoft_Extensions
+tags:
+ - JavaScript
+ - 'JavaScript:Microsoft Extensions'
+ - NeedsTranslation
+ - Non-standard
+ - Reference
+ - TopicStub
+translation_of: Archive/Web/JavaScript/Microsoft_Extensions
+---
+<div>{{JSSidebar("Microsoft Extensions")}}{{Non-standard_Header}}
+<div class="blockIndicator warning">
+<p><strong>Warning:</strong> These APIs will only work in Microsoft applications, and are not on a standards track.</p>
+</div>
+</div>
+
+<p>Microsoft browsers (Internet Explorer, and in a few cases, Microsoft Edge) support a number of special Microsoft extensions to the otherwise standard <a href="/en-US/docs/Web/JavaScript">JavaScript APIs</a>.</p>
+
+<h2 id="Objects">Objects</h2>
+
+<div class="index">
+<ul>
+ <li>{{jsxref("ActiveXObject")}} {{obsolete_inline}}</li>
+ <li>{{jsxref("Debug")}} {{deprecated_inline}}</li>
+ <li>{{jsxref("Enumerator")}} {{obsolete_inline}}</li>
+ <li>{{jsxref("VBArray")}} {{obsolete_inline}}</li>
+</ul>
+</div>
+
+<h2 id="Functions">Functions</h2>
+
+<div class="index">
+<ul>
+ <li>{{jsxref("GetObject")}} {{obsolete_inline}}</li>
+ <li>{{jsxref("ScriptEngine")}} {{deprecated_inline}}</li>
+ <li>{{jsxref("ScriptEngineBuildVersion")}} {{deprecated_inline}}</li>
+ <li>{{jsxref("ScriptEngineMajorVersion")}} {{deprecated_inline}}</li>
+ <li>{{jsxref("ScriptEngineMinorVersion")}} {{deprecated_inline}}</li>
+</ul>
+</div>
+
+<h2 id="Statements">Statements</h2>
+
+<div class="index">
+<ul>
+ <li><a href="/en-US/docs/Web/JavaScript/Microsoft_JavaScript_extensions/at-cc-on">@cc-on</a> {{obsolete_inline}}</li>
+ <li><a href="/en-US/docs/Web/JavaScript/Microsoft_JavaScript_extensions/at-if">@if</a> {{obsolete_inline}}</li>
+ <li><a href="/en-US/docs/Web/JavaScript/Microsoft_JavaScript_extensions/at-set">@set</a> {{obsolete_inline}}</li>
+</ul>
+</div>
+
+<h2 id="Other">Other</h2>
+
+<div class="index">
+<ul>
+ <li><code><a href="/en-US/docs/Web/JavaScript/Microsoft_JavaScript_extensions/Date.getVarDate">Date.getVarDate()</a></code> {{obsolete_inline}}</li>
+ <li><code><a href="/en-US/docs/Web/JavaScript/Microsoft_JavaScript_extensions/Error.description">Error.description</a></code> {{deprecated_inline}}</li>
+ <li><code><a href="/en-US/docs/Web/JavaScript/Microsoft_JavaScript_extensions/Error.number">Error.number</a></code> {{deprecated_inline}}</li>
+ <li><code><a href="/en-US/docs/Web/JavaScript/Microsoft_JavaScript_extensions/Error.stackTraceLimit">Error.stackTraceLimit</a></code> {{deprecated_inline}}</li>
+</ul>
+</div>
+
+<h2 id="See_also">See also</h2>
+
+<ul>
+ <li><a href="/en-US/docs/Web/CSS/Microsoft_Extensions">Microsoft CSS Extensions</a></li>
+ <li><a href="/en-US/docs/Web/API/Microsoft_API_extensions">Microsoft DOM Extensions</a></li>
+</ul>
diff --git a/files/zh-cn/archive/web/javascript/reflect.enumerate/index.html b/files/zh-cn/archive/web/javascript/reflect.enumerate/index.html
new file mode 100644
index 0000000000..e8eb0bd103
--- /dev/null
+++ b/files/zh-cn/archive/web/javascript/reflect.enumerate/index.html
@@ -0,0 +1,120 @@
+---
+title: Reflect.enumerate()
+slug: Archive/Web/JavaScript/Reflect.enumerate
+translation_of: Archive/Web/JavaScript/Reflect.enumerate
+---
+<div>{{JSRef}} {{obsolete_header}}</div>
+
+<div><strong><code>Reflect.enumerate()</code></strong>静态方法通常返回目标对象自身和继承的可迭代属性的一个迭代器,在ECMAScript 2016中已被移除,在各浏览器中已被废弃。</div>
+
+<h2 id="语法">语法</h2>
+
+<pre class="syntaxbox notranslate">Reflect.enumerate(target)
+</pre>
+
+<h3 id="参数">参数</h3>
+
+<dl>
+ <dt><code>target</code></dt>
+ <dd>获取属性的目标对象。</dd>
+</dl>
+
+<h3 id="返回值">返回值</h3>
+
+<p>目标对象自身和继承的可迭代属性的一个迭代器。</p>
+
+<h3 id="Exceptions">Exceptions</h3>
+
+<p> {{jsxref("TypeError")}}, 如果目标不是一个 {{jsxref("Object")}}.</p>
+
+<h2 id="描述">描述</h2>
+
+<p><code>Reflect.enumerate()</code>方法返回目标对象自身和继承的可迭代属性的一个迭代器。</p>
+
+<h2 id="案例">案例</h2>
+
+<h3 id="使用_Reflect.enumerate">使用 <code>Reflect.enumerate()</code></h3>
+
+<pre class="brush: js notranslate">var obj = { x: 1, y: 2 };
+
+for (var name of Reflect.enumerate(obj)) {
+ console.log(name);
+}
+// logs "x" and "y"
+</pre>
+
+<h2 id="规范">规范</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('ES2015', '#sec-reflect.enumerate', 'Reflect.enumerate')}}</td>
+ <td>{{Spec2('ES2015')}}</td>
+ <td>初始定义。ECMAScript 2016中已移除。</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+<p>{{CompatibilityTable}}</p>
+
+<div id="compat-desktop">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Chrome</th>
+ <th>Firefox (Gecko)</th>
+ <th>Internet Explorer</th>
+ <th>Opera</th>
+ <th>Safari</th>
+ </tr>
+ <tr>
+ <td>Basic support</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<div id="compat-mobile">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Android</th>
+ <th>Chrome for Android</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Mobile</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
+ </tr>
+ <tr>
+ <td>Basic support</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatNo}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<h2 id="参照">参照</h2>
+
+<ul>
+ <li>{{jsxref("Reflect")}}</li>
+ <li><a href="/en-US/docs/Web/JavaScript/Reference/Statements/for...in">for...in</a></li>
+</ul>