没有合适的资源?快使用搜索试试~ 我知道了~
CoreReferenceJS14[1].pdf
需积分: 0 1 下载量 26 浏览量
2008-07-17
18:49:07
上传
评论
收藏 3.19MB PDF 举报
温馨提示
试读
299页
CoreReferenceJS14[1].pdf
资源详情
资源评论
资源推荐
comp.sys
TCP/IP
directory server
World Wide Web
ww
Personal
IStore
Proxy
merchant system
HTML
http://www
Internet
server
security
news
URL
HTML
mail
Inter
navigator
community system
electronic commerce
JavaScript
Proxy
Mozilla
certificate
P
ublishing
Publishing
Chat
encryption
secure sockets layer
SSL
Core JavaScript
Reference
October 29, 1998
Version 1.4
Netscape Communications Corporation ("Netscape") and its licensors retain all ownership rights to the software
programs offered by Netscape (referred to herein as "Software") and related documentation. Use of the Software and
related documentation is governed by the license agreement accompanying the Software and applicable copyright
law.
Your right to copy this documentation is limited by copyright law. Making unauthorized copies, adaptations, or
compilation works is prohibited and constitutes a punishable violation of the law. Netscape may revise this
documentation from time to time without notice.
THIS DOCUMENTATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. IN NO EVENT SHALL
NETSCAPE BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF BUSINESS, LOSS OF USE OR DATA, INTERRUPTION
OF BUSINESS, OR FOR INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY KIND,
ARISING FROM ANY ERROR IN THIS DOCUMENTATION.
The Software and documentation are copyright ©1994-1998 Netscape Communications Corporation. All rights
reserved.
The Software contains JavaScript software technology invented and implemented by Netscape Communications
Corporation. The JavaScript name is a trademark or registered trademark of Sun Microsystems, Inc. in the United
States and other countries and is used under license.
Netscape, Netscape Navigator, Netscape Certificate Server, Netscape DevEdge, Netscape FastTrack Server, Netscape
ONE, SuiteSpot and the Netscape N and Ship’s Wheel logos are registered trademarks of Netscape Communications
Corporation in the United States and other countries. Other Netscape logos, product names, and service names are
also trademarks of Netscape Communications Corporation, which may be registered in other countries. Other product
and brand names are trademarks of their respective owners.
The downloading, export or reexport of Netscape software or any underlying information or technology must be in
full compliance with all United States and other applicable laws and regulations. Any provision of Netscape software
or documentation to the U.S. Government is with restricted rights as described in the license agreement
accompanying Netscape software.
.
Version 1.4
©1998 Netscape Communications Corporation. All Rights Reserved
Printed in the United States of America. 00 99 98 5 4 3 2 1
Netscape Communications Corporation, 501 East Middlefield Road, Mountain View, CA 94043
Recycled and Recyclable Paper
3
New Features in this Release
JavaScript version 1.4 provides the following new features and enhancements:
• Exception handling. You can throw and catch exceptions using the
throw and try...catch statements. See “throw” on page 243 and
“try...catch” on page 246.
• New operators in and instanceof. The in operator returns true if the
specified property is in the specified object; see “in” on page 269. The
instanceof operator returns true if the specified object is of the specified
object type; see “instanceof” on page 270.
• Changes to LiveConnect. Several changes to LiveConnect improve the
way Java and JavaScript code communicate:
• The methods of java.lang.Object are inherited by JavaArray. In
addition, the JavaArrary.toString method now calls the method
java.lang.Object.toString. See “JavaArray” on page 98.
• You can pass a JavaClass object to a Java method which requires an
argument of type java.lang.Class instead of creating a wrapper
around an instance of java.lang.Class. See “JavaClass” on
page 102.
• You cannot construct an instance of JSException with a detail
message. The three original public constructors for the Java class
netscape.javascript.JSException that supported this feature
are deprecated. See “JSException” on page 280.
• You cannot use the == operator to compare two instances of
JSObject. Use JSObject.equals. See “Comparison Operators” on
page 256 and JSObject.equals.
4 Core JavaScript Reference
• Changes to the eval method.
• The top-level eval method cannot be called indirectly. In previous
versions, it was recommended that this method not be called indirectly;
starting with JavaScript 1.4, calling eval indirectly could result in a
runtime error. This change improves performance. See “eval” on
page 214.
• The eval method is no longer available as a method of Object; use
the top-level eval function instead. See “eval” on page 214.
• Changes to the Function object.
• You should no longer specify a function name when using the
arguments array; the arguments array is a variable and is no longer
a property of Function objects. This change improves performance.
See “Function” on page 79 and “arguments” on page 85.
• Deprecated the Function.arity property. It has been replaced by
the Function.length property. See “length” on page 92.
Contents v
Contents
New Features in this Release .......................................................................3
About this Book ................................................................................................9
New Features in this Release ................................................................................9
What You Should Already Know .........................................................................9
JavaScript Versions ..............................................................................................10
Where to Find JavaScript Information ................................................................11
Document Conventions .......................................................................................12
Part 1 Object Reference
Chapter 1 Objects, Methods, and Properties ......................................15
Array .....................................................................................................................16
Boolean ................................................................................................................38
Date ......................................................................................................................43
Function ...............................................................................................................79
java .......................................................................................................................97
JavaArray ..............................................................................................................98
JavaClass .............................................................................................................102
JavaObject ..........................................................................................................104
JavaPackage .......................................................................................................106
Math ....................................................................................................................107
netscape .............................................................................................................126
Number ..............................................................................................................127
Object .................................................................................................................136
Packages .............................................................................................................147
RegExp ...............................................................................................................151
String ..................................................................................................................173
sun ......................................................................................................................210
剩余298页未读,继续阅读
yxb73830
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0