★ wanayoo — archive 1999 https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/New_in_JavaScript/1.1Nouvelle recherche | Portail wanayoo

New in JavaScript 1.1

我们的志愿者还没有将这篇文章翻译为 中文 (简体) 。加入我们帮助完成翻译!

The following is a changelog for JavaScript from Netscape Navigator 2.0 to 3.0. The old Netscape documentation references this as "Features added after version 1". Netscape Navigator 3.0 was released on August 19, 1996. Netscape Navigator 3.0 was the second major version of the browser with JavaScript support.

JavaScript versions

Netscape Navigator 3.0 also introduced JavaScript language versions.

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

New features in JavaScript 1.1

New objects

New properties

New methods

New operators

Other new features

Changed functionality in JavaScript 1.1

  • "Object deletion". You can remove an object by setting its object reference to null.
  • constructor and prototype properties on objects added.
  • eval() is now a method of every object (was previously a built-in function); it evaluates a string of JavaScript code in the context of the specified object.
  • Math.random() now works on every platform.
  • toString(): Added radix parameter, which specifies the base to use for representing numeric values.
  • isNaN() now works on every platform (not only Unix anymore)
  • parseFloat() and 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.

文档标签和贡献者

标签: 
向此页面作出贡献: fscholz, teoli, Sheppy, user01, Brettz9
最后编辑者: fscholz,
隐藏侧边栏