Core JavaScript 1.5 Guide

  • 版本网址缩略名: Core_JavaScript_1.5_Guide
  • 版本标题: Core JavaScript 1.5 Guide
  • 版本 id: 79498
  • 创建于:
  • 创建者: Gamlty
  • 是否是当前版本?
  • 评论 /* [[Core JavaScript 1.5 Guide:正则表达式|正则表达式]] */

修订内容

关于本指南

这个Release版本中的新特性
你应该知道什么
JavaScript的版本
哪里能够获取JavaScript的信息
文档约定

JavaScript总览

什么是JavaScript?
JavaScript和Java
JavaScript和ECMA规范
JavaScript和ECMA版本之间的关系
JavaScript Documentation与ECMA规范对比
JavaScript和ECMA的术语

语言的核心特征

值(Values)
数据类型转换
变量
定义变量
对变量求值
变量的Scope
常量
Literals
Array Literals
Boolean Literals
Floating-Point Literals
Integers
Object Literals
String Literals
Unicode
Unicode与ASCII和ISO的兼容性
Unicode Escape Sequences
JavaScript文件中的Unicode字符
使用Unicode显示字符

表达式与操作符

表达式
操作符
赋值操作符
比较操作符
算术操作符
位移操作符
逻辑操作符
串式操作符
特殊操作符
操作优先性

正则表达式

创建正则表达式
创建一个正则表达式模式
Using Simple Patterns
Using Special Characters
Using Parentheses
Working with Regular Expressions
Using Parenthesized Substring Matches
Executing a Global Search, Ignoring Case, and Considering Multiline Input
Examples

Statements

Block Statement
Conditional Statements
if...else Statement
switch Statement
Loop Statements
for Statement
do...while Statement
while Statement
label Statement
break Statement
continue Statement
Object Manipulation Statements
for...in Statement
with Statement
Comments
Exception Handling Statements
throw Statement
try...catch Statement

方法

方法的定义
方法的调用
使用 arguments 对象
预定于的方法
eval 方法
isFinite 方法
isNaN 方法
parseInt 和 parseFloat 方法
Number 和 String 方法
escape 和 unescape 方法

用对象来干活

对象和属性
创建新对象
使用对象初始器
使用构造函数
索引对象属性
为对象类型定义属性
定义方法
使用 this 来引用对象
定义赋取器
删除属性
Predefined Core Objects
Array Object
Boolean Object
Date Object
Function Object
Math Object
Number Object
RegExp Object
String Object

Details of the Object Model

Class-Based vs. Prototype-Based Languages
Defining a Class
Subclasses and Inheritance
Adding and Removing Properties
Summary of Differences
The Employee Example
Creating the Hierarchy
Object Properties
Inheriting Properties
Adding Properties
More Flexible Constructors
Property Inheritance Revisited
Local versus Inherited Values
Determining Instance Relationships
Global Information in Constructors
No Multiple Inheritance

LiveConnect Overview

Working with Wrappers
JavaScript to Java Communication
The Packages Object
Working with Java Arrays
Package and Class Reference
Arguments of Type char
Handling Java Exceptions in JavaScript
Java to JavaScript Communication
Using the LiveConnect Classes
Data Type Conversions
JavaScript to Java Conversions
Java to JavaScript Conversions

Originally At: http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.5/guide/

{{template.Next("Core_JavaScript_1.5_Guide:About")}}

修订版来源

<p>
</p>
<h4 name=".E5.85.B3.E4.BA.8E.E6.9C.AC.E6.8C.87.E5.8D.97"> <a href="cn/Core_JavaScript_1.5_Guide/%e5%85%b3%e4%ba%8e">关于本指南</a> </h4>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%85%b3%e4%ba%8e#.E8.BF.99.E4.B8.AARelease.E7.89.88.E6.9C.AC.E4.B8.AD.E7.9A.84.E6.96.B0.E7.89.B9.E6.80.A7">这个Release版本中的新特性</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%85%b3%e4%ba%8e#.E4.BD.A0.E5.BA.94.E8.AF.A5.E7.9F.A5.E9.81.93.E4.BB.80.E4.B9.88">你应该知道什么</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%85%b3%e4%ba%8e#JavaScript.E7.9A.84.E7.89.88.E6.9C.AC">JavaScript的版本</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%85%b3%e4%ba%8e#.E5.93.AA.E9.87.8C.E8.83.BD.E5.A4.9F.E8.8E.B7.E5.8F.96JavaScript.E7.9A.84.E4.BF.A1.E6.81.AF">哪里能够获取JavaScript的信息</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%85%b3%e4%ba%8e#.E6.96.87.E6.A1.A3.E7.BA.A6.E5.AE.9A">文档约定</a>
</dd></dl>
<h4 name="JavaScript.E6.80.BB.E8.A7.88"> <a href="cn/Core_JavaScript_1.5_Guide/JavaScript%e6%80%bb%e8%a7%88">JavaScript总览</a> </h4>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/JavaScript%e6%80%bb%e8%a7%88#.E4.BB.80.E4.B9.88.E6.98.AFJavaScript.EF.BC.9F">什么是JavaScript?</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/JavaScript%e6%80%bb%e8%a7%88#JavaScript.E5.92.8CJava">JavaScript和Java</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/JavaScript%e6%80%bb%e8%a7%88#JavaScript.E5.92.8CECMA.E8.A7.84.E8.8C.83">JavaScript和ECMA规范</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/JavaScript%e6%80%bb%e8%a7%88#JavaScript.E5.92.8CECMA.E7.89.88.E6.9C.AC.E4.B9.8B.E9.97.B4.E7.9A.84.E5.85.B3.E7.B3.BB">JavaScript和ECMA版本之间的关系</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/JavaScript%e6%80%bb%e8%a7%88#JavaScript_Documentation.E4.B8.8EECMA.E8.A7.84.E8.8C.83.E5.AF.B9.E6.AF.94">JavaScript Documentation与ECMA规范对比</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/JavaScript%e6%80%bb%e8%a7%88#JavaScript.E5.92.8CECMA.E7.9A.84.E6.9C.AF.E8.AF.AD">JavaScript和ECMA的术语</a>
</dd></dl>
</dd></dl>
<h4 name=".E8.AF.AD.E8.A8.80.E7.9A.84.E6.A0.B8.E5.BF.83.E7.89.B9.E5.BE.81"> <a href="cn/Core_JavaScript_1.5_Guide/%e5%85%b3%e4%ba%8e/%e8%af%ad%e8%a8%80%e7%9a%84%e6%a0%b8%e5%bf%83%e7%89%b9%e5%be%81">语言的核心特征</a> </h4>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%80%bc(Values)">值(Values)</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Values#.E6.95.B0.E6.8D.AE.E7.B1.BB.E5.9E.8B.E8.BD.AC.E6.8D.A2">数据类型转换</a>
</dd></dl>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%8f%98%e9%87%8f">变量</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%8f%98%e9%87%8f#.E5.AE.9A.E4.B9.89.E5.8F.98.E9.87.8F">定义变量</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%8f%98%e9%87%8f#.E5.AF.B9.E5.8F.98.E9.87.8F.E6.B1.82.E5.80.BC">对变量求值</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%8f%98%e9%87%8f#.E5.8F.98.E9.87.8F.E7.9A.84Scope">变量的Scope</a>
</dd></dl>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%b8%b8%e9%87%8f">常量</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Literals">Literals</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Literals#Array_Literals">Array Literals</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Literals#Boolean_Literals">Boolean Literals</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Literals#Floating-Point_Literals">Floating-Point Literals</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Literals#Integers">Integers</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Literals#Object_Literals">Object Literals</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Literals#String_Literals">String Literals</a>
</dd></dl>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Unicode">Unicode</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Unicode#Unicode.E4.B8.8EASCII.E5.92.8CISO.E7.9A.84.E5.85.BC.E5.AE.B9.E6.80.A7">Unicode与ASCII和ISO的兼容性</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Unicode#Unicode_Escape_Sequences">Unicode Escape Sequences</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Unicode#JavaScript.E6.96.87.E4.BB.B6.E4.B8.AD.E7.9A.84Unicode.E5.AD.97.E7.AC.A6">JavaScript文件中的Unicode字符</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Unicode#.E4.BD.BF.E7.94.A8Unicode.E6.98.BE.E7.A4.BA.E5.AD.97.E7.AC.A6">使用Unicode显示字符</a>
</dd></dl>
</dd></dl>
<h4 name=".E8.A1.A8.E8.BE.BE.E5.BC.8F.E4.B8.8E.E6.93.8D.E4.BD.9C.E7.AC.A6"> <a href="cn/Core_JavaScript_1.5_Guide/%e8%a1%a8%e8%be%be%e5%bc%8f%e4%b8%8e%e6%93%8d%e4%bd%9c%e7%ac%a6">表达式与操作符</a> </h4>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e8%a1%a8%e8%be%be%e5%bc%8f">表达式</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e6%93%8d%e4%bd%9c%e7%ac%a6">操作符</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e6%93%8d%e4%bd%9c%e7%ac%a6/%e8%b5%8b%e5%80%bc%e6%93%8d%e4%bd%9c%e7%ac%a6">赋值操作符</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e6%93%8d%e4%bd%9c%e7%ac%a6/%e6%af%94%e8%be%83%e6%93%8d%e4%bd%9c%e7%ac%a6">比较操作符</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e6%93%8d%e4%bd%9c%e7%ac%a6/%e7%ae%97%e6%9c%af%e6%93%8d%e4%bd%9c%e7%ac%a6">算术操作符</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e6%93%8d%e4%bd%9c%e7%ac%a6/%e4%bd%8d%e7%a7%bb%e6%93%8d%e4%bd%9c%e7%ac%a6">位移操作符</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e6%93%8d%e4%bd%9c%e7%ac%a6/%e9%80%bb%e8%be%91%e6%93%8d%e4%bd%9c%e7%ac%a6">逻辑操作符</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e6%93%8d%e4%bd%9c%e7%ac%a6/%e4%b8%b2%e5%bc%8f%e6%93%8d%e4%bd%9c%e7%ac%a6">串式操作符</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e6%93%8d%e4%bd%9c%e7%ac%a6/%e7%89%b9%e6%ae%8a%e6%93%8d%e4%bd%9c%e7%ac%a6">特殊操作符</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e6%93%8d%e4%bd%9c%e7%ac%a6#.E6.93.8D.E4.BD.9C.E4.BC.98.E5.85.88.E6.80.A7">操作优先性</a>
</dd></dl>
</dd></dl>
<h4 name=".E6.AD.A3.E5.88.99.E8.A1.A8.E8.BE.BE.E5.BC.8F"> <a href="cn/Core_JavaScript_1.5_Guide/%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f">正则表达式</a> </h4>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%88%9b%e5%bb%ba%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f">创建正则表达式</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aa%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f%e6%a8%a1%e5%bc%8f">创建一个正则表达式模式</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Writing_a_Regular_Expression_Pattern#Using_Simple_Patterns">Using Simple Patterns</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Writing_a_Regular_Expression_Pattern#Using_Special_Characters">Using Special Characters</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Writing_a_Regular_Expression_Pattern#Using_Parentheses">Using Parentheses</a>
</dd></dl>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Working_with_Regular_Expressions">Working with Regular Expressions</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Working_with_Regular_Expressions/Using_Parenthesized_Substring_Matches">Using Parenthesized Substring Matches</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Working_with_Regular_Expressions/Executing_a_Global_Search%2c_Ignoring_Case%2c_and_Considering_Multiline_Input">Executing a Global Search, Ignoring Case, and Considering Multiline Input</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Working_with_Regular_Expressions/Examples_of_Regular_Expressions">Examples</a>
</dd></dl>
</dd></dl>
<h4 name="Statements"> <a href="cn/Core_JavaScript_1.5_Guide/Statements">Statements</a> </h4>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Block_Statement">Block Statement</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Conditional_Statements">Conditional Statements</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Conditional_Statements#if...else_Statement">if...else Statement</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Conditional_Statements#switch_Statement">switch Statement</a>
</dd></dl>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Loop_Statements">Loop Statements</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Loop_Statements/for_Statement">for Statement</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Loop_Statements/do...while_Statement">do...while Statement</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Loop_Statements/while_Statement">while Statement</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Loop_Statements/label_Statement">label Statement</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Loop_Statements/break_Statement">break Statement</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Loop_Statements/continue_Statement">continue Statement</a>
</dd></dl>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Object_Manipulation_Statements">Object Manipulation Statements</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Object_Manipulation_Statements#for...in_Statement">for...in Statement</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Object_Manipulation_Statements#with_Statement">with Statement</a>
</dd></dl>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Statement_Comments">Comments</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Exception_Handling_Statements">Exception Handling Statements</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Exception_Handling_Statements/throw_Statement">throw Statement</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Exception_Handling_Statements/try...catch_Statement">try...catch Statement</a>
</dd></dl>
</dd></dl>
<h4 name=".E6.96.B9.E6.B3.95"> <a href="cn/Core_JavaScript_1.5_Guide/Functions">方法</a> </h4>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Defining_Functions">方法的定义</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Calling_Functions">方法的调用</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Using_the_arguments_object">使用 arguments 对象</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Functions">预定于的方法</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Functions/eval_Function">eval 方法</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Functions/isFinite_Function">isFinite 方法</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Functions/isNaN_Function">isNaN 方法</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Functions/parseInt_and_parseFloat_Functions">parseInt 和 parseFloat 方法</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Functions/Number_and_String_Functions">Number 和 String 方法</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Functions/escape_and_unescape_Functions">escape 和 unescape 方法</a>
</dd></dl>
</dd></dl>
<h4 name=".E7.94.A8.E5.AF.B9.E8.B1.A1.E6.9D.A5.E5.B9.B2.E6.B4.BB"> <a href="cn/Core_JavaScript_1.5_Guide/%e7%94%a8%e5%af%b9%e8%b1%a1%e6%9d%a5%e5%b9%b2%e6%b4%bb">用对象来干活</a> </h4>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%af%b9%e8%b1%a1%e5%92%8c%e5%b1%9e%e6%80%a7">对象和属性</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%88%9b%e5%bb%ba%e6%96%b0%e5%af%b9%e8%b1%a1">创建新对象</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%88%9b%e5%bb%ba%e6%96%b0%e5%af%b9%e8%b1%a1/%e4%bd%bf%e7%94%a8%e5%af%b9%e8%b1%a1%e5%88%9d%e5%a7%8b%e5%99%a8">使用对象初始器</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%88%9b%e5%bb%ba%e6%96%b0%e5%af%b9%e8%b1%a1/%e4%bd%bf%e7%94%a8%e6%9e%84%e9%80%a0%e5%87%bd%e6%95%b0">使用构造函数</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%88%9b%e5%bb%ba%e6%96%b0%e5%af%b9%e8%b1%a1/%e7%b4%a2%e5%bc%95%e5%af%b9%e8%b1%a1%e5%b1%9e%e6%80%a7">索引对象属性</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%88%9b%e5%bb%ba%e6%96%b0%e5%af%b9%e8%b1%a1/%e4%b8%ba%e5%af%b9%e8%b1%a1%e7%b1%bb%e5%9e%8b%e5%ae%9a%e4%b9%89%e5%b1%9e%e6%80%a7">为对象类型定义属性</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%88%9b%e5%bb%ba%e6%96%b0%e5%af%b9%e8%b1%a1/%e5%ae%9a%e4%b9%89%e6%96%b9%e6%b3%95">定义方法</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%88%9b%e5%bb%ba%e6%96%b0%e5%af%b9%e8%b1%a1/%e4%bd%bf%e7%94%a8_this_%e6%9d%a5%e5%bc%95%e7%94%a8%e5%af%b9%e8%b1%a1">使用 this 来引用对象</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%88%9b%e5%bb%ba%e6%96%b0%e5%af%b9%e8%b1%a1/%e5%ae%9a%e4%b9%89%e8%b5%8b%e5%8f%96%e5%99%a8">定义赋取器</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/%e5%88%9b%e5%bb%ba%e6%96%b0%e5%af%b9%e8%b1%a1/%e5%88%a0%e9%99%a4%e5%b1%9e%e6%80%a7">删除属性</a>
</dd></dl>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Core_Objects">Predefined Core Objects</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Core_Objects/Array_Object">Array Object</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Core_Objects/Boolean_Object">Boolean Object</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Core_Objects/Date_Object">Date Object</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Core_Objects/Function_Object">Function Object</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Core_Objects/Math_Object">Math Object</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Core_Objects/Number_Object">Number Object</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Core_Objects/RegExp_Object">RegExp Object</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Predefined_Core_Objects/String_Object">String Object</a>
</dd></dl>
</dd></dl>
<h4 name="Details_of_the_Object_Model"> <a href="cn/Core_JavaScript_1.5_Guide/Details_of_the_Object_Model">Details of the Object Model</a> </h4>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Class-Based_vs._Prototype-Based_Languages">Class-Based vs. Prototype-Based Languages</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Class-Based_vs._Prototype-Based_Languages#Defining_a_Class">Defining a Class</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Class-Based_vs._Prototype-Based_Languages#Subclasses_and_Inheritance">Subclasses and Inheritance</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Class-Based_vs._Prototype-Based_Languages#Adding_and_Removing_Properties">Adding and Removing Properties</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Class-Based_vs._Prototype-Based_Languages#Summary_of_Differences">Summary of Differences</a>
</dd></dl>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/The_Employee_Example">The Employee Example</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/The_Employee_Example/Creating_the_Hierarchy">Creating the Hierarchy</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/The_Employee_Example/Object_Properties">Object Properties</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/The_Employee_Example/Object_Properties/Inheriting_Properties">Inheriting Properties</a>
</dd></dl>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/The_Employee_Example/Object_Properties/Adding_Properties">Adding Properties</a>
</dd></dl>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/The_Employee_Example/More_Flexible_Constructors">More Flexible Constructors</a>
</dd></dl>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Property_Inheritance_Revisited">Property Inheritance Revisited</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Property_Inheritance_Revisited/Local_versus_Inherited_Values">Local versus Inherited Values</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Property_Inheritance_Revisited/Determining_Instance_Relationships">Determining Instance Relationships</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Property_Inheritance_Revisited/Global_Information_in_Constructors">Global Information in Constructors</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/Property_Inheritance_Revisited/No_Multiple_Inheritance">No Multiple Inheritance</a>
</dd></dl>
</dd></dl>
<h4 name="LiveConnect_Overview"> <a href="cn/Core_JavaScript_1.5_Guide/LiveConnect_Overview">LiveConnect Overview</a> </h4>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/LiveConnect_Overview/Working_with_Wrappers">Working with Wrappers</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/LiveConnect_Overview/JavaScript_to_Java_Communication">JavaScript to Java Communication</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/LiveConnect_Overview/JavaScript_to_Java_Communication#The_Packages_Object">The Packages Object</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/LiveConnect_Overview/JavaScript_to_Java_Communication#Working_with_Java_Arrays">Working with Java Arrays</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/LiveConnect_Overview/JavaScript_to_Java_Communication#Package_and_Class_Reference">Package and Class Reference</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/LiveConnect_Overview/JavaScript_to_Java_Communication#Arguments_of_Type_char">Arguments of Type char</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/LiveConnect_Overview/JavaScript_to_Java_Communication#Handling_Java_Exceptions_in_JavaScript">Handling Java Exceptions in JavaScript</a>
</dd></dl>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/LiveConnect_Overview/Java_to_JavaScript_Communication">Java to JavaScript Communication</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/LiveConnect_Overview/Java_to_JavaScript_Communication#Using_the_LiveConnect_Classes">Using the LiveConnect Classes</a>
</dd></dl>
<dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/LiveConnect_Overview/Data_Type_Conversions">Data Type Conversions</a>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/LiveConnect_Overview/Data_Type_Conversions#JavaScript_to_Java_Conversions">JavaScript to Java Conversions</a>
</dd></dl>
</dd></dl>
<dl><dd><dl><dd> <a href="cn/Core_JavaScript_1.5_Guide/LiveConnect_Overview/Data_Type_Conversions#Java_to_JavaScript_Conversions">Java to JavaScript Conversions</a>
</dd></dl>
</dd></dl>
<p><span class="comment">Originally At: http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.5/guide/</span>
</p><p>{{template.Next("Core_JavaScript_1.5_Guide:About")}}
</p>
恢复到这个版本