Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

JavaScript 1.1的新特性

这篇翻译不完整。请帮忙从英语翻译这篇文章

下面介绍的是JavaScript从Netscape Navigator 2.0到3.0的更新日志。旧的Netscape文档请参考"第1版之后新增的特性"。Netscape Navigator 3.0在1996年8月19发布,是支持JavaScript的浏览器的第二个主要的版本。

JavaScript 版本

Netscape Navigator 3.0 也引进了JavaScript语言的版本号。

<SCRIPT LANGUAGE="JavaScript">    <!-- JavaScript for Navigator 2.0. -->
<SCRIPT LANGUAGE="JavaScript1.1"> <!-- JavaScript for Navigator 3.0. -->

JavaScript 1.1 新特性

新增的对象

新增的属性

新增的方法

新增的操作符

其他新特性

JavaScript 1.1修改的功能

  • “对象删除”:你可通过以设置对象的引用为null来删除一个对象。
  • 增加了对象的构造函数和原型属性
  • eval() 现在是每一个对象的方法(之前是一个内置函数),它能够在指定对象的上下文执行一个JavaScript代码的字符串。
  • Math.random()现在能在所有平台上工作。
  • toString(): Added radix parameter, which specifies the base to use for representing numeric values.
  • toString():新增了基数作为参数,用于指定表示数值时的进制。
  • isNaN() 现在能在所有平台上工作。 (不再是只能在Unix下工作)
  • parseFloat()parseint() now return NaN on all platforms, if the first character of the specified string cannot be converted to a number; in previous releases, it returned NaN on Solaris and Irix and zero on all other platforms.
  • parseFloat()parseint()指定的字符串(参数)的第一个字符无法转换为数字时,在所有平台都会返回NaN。(在这之前发布的版本里,在Solaris和Irix下它们会返回NaN,而在其他平台会返回0)

文档标签和贡献者

 此页面的贡献者: x-cold
 最后编辑者: x-cold,