2019-04-21 11:50:48 +08:00

24 lines
3.2 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<article id="wikiArticle">
<div class="boxed translate-rendered">
<div></div>
<p class="ordinary-output target-output"><span>以下是JavaScript 1.6的更新日志。JavaScript 1.6已经被包含在2005年11月发布的</span>Firefox 1.5 (Gecko 1.8)中。<span>JavaScript 1.6相对应的</span>ECMA标准是ECMA-262第3版和ECMAScript for XML (E4X),这让它拥有了一些额外的特性 。引入了一些新特性E4X<span style="line-height: inherit;">几个新的数组方法,还</span><span style="line-height: inherit;"></span><span style="line-height: inherit;">数组</span><span style="line-height: inherit;">字符串</span><span style="line-height: inherit;">的通用接口(generics)</span></p>
<h2 id="JavaScript_1.6新特性">JavaScript 1.6新特性</h2>
<ul>
<li>使用<a href="https://developer.mozilla.org/zh-CN/docs/Web/JavaScript" title="JavaScript">JavaScript</a>创建和处理<a href="https://developer.mozilla.org/zh-CN/docs/Glossary/XML" title="XML">XML</a>内容的ECMAScript for XML (<a href="https://developer.mozilla.org/zh-CN/docs/Archive/Web/E4X" title="E4X">E4X</a>) 的支持文档已经添加。 更多详情:<a class="new" href="https://developer.mozilla.org/zh-CN/docs/Archive/Web/E4X/Processing_XML_with_E4X" rel="nofollow" title="E4X/Processing_XML_with_E4X">使用E4X处理XML</a></li>
<li><a href="https://developer.mozilla.orgReference/Global_Objects/Array/indexOf"><code>Array.prototype.indexOf()</code></a></li>
<li><a href="https://developer.mozilla.orgReference/Global_Objects/Array/lastIndexOf"><code>Array.prototype.lastIndexOf()</code></a></li>
<li><a href="https://developer.mozilla.orgReference/Global_Objects/Array/every"><code>Array.prototype.every()</code></a></li>
<li><a href="https://developer.mozilla.orgReference/Global_Objects/Array/filter"><code>Array.prototype.filter()</code></a></li>
<li><a href="https://developer.mozilla.orgReference/Global_Objects/Array/forEach"><code>Array.prototype.forEach()</code></a></li>
<li><a href="https://developer.mozilla.orgReference/Global_Objects/Array/map"><code>Array.prototype.map()</code></a></li>
<li><a href="https://developer.mozilla.orgReference/Global_Objects/Array/some"><code>Array.prototype.some()</code></a></li>
<li><a href="https://developer.mozilla.orgReference/Global_Objects/Array#Array_generic_methods" title="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array#Array_generics">Array generics</a></li>
<li><a href="https://developer.mozilla.orgReference/Global_Objects/String#String_generic_methods" title="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String#String_generics">String generics</a></li>
<li><a href="https://developer.mozilla.orgReference/Statements/for_each...in"><code>for each...in</code></a></li>
</ul>
<h2 id="JavaScript_1.6功能变化">JavaScript 1.6功能变化</h2>
<ul>
<li>产生了一个<a class="external link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=292215" rel="noopener">bug</a>,当形参或实参的数量已经固定了,若 <a href="https://developer.mozilla.orgReference/Functions/arguments"><code>arguments[n]</code></a> 中的n大于这个数量就不能被设置。</li>
</ul>
</div>
</article>