JavaScript语言教程

接下来我似乎应该给出各个对象的属性了?我给还是不给呢?给出吧。免得大家说我不厚道。
arguments: callee, caller, length,同时,需要注意的是,它是一个数组,可以通过[]来访问它的各个具体的元素。其元素就是各个参数。
Array: constructor, index, input, length, prototype concat(), join(), pop(), push(), reverse(), shift(), slice(), sort(), splice(), toLocaleString(), toSource(), toString(), unshift(), valueOf(),同时,需要注意的是,它是一个数组,可以通过[]来访问它的各个具体的元素。其元素可以为任意对象。
Boolean: constructor, prototype toSource(), toString(), valueOf()
Date: constructor, length, prototype parse(), UTC(), getDate(), getDay(), getFullYear(), getHours(), getMilliseconds(), getMinutes(), getMonth(), getSeconds(), getTime(), getTimezoneOffset(), getUTCDate(), getUTCDay(), getUTCFullYear(), getUTCHours(), getUTCMilliseconds(), getUTCMinutes(), getUTCMonth(), getUTCSeconds(), getVarDate(), getYear(), parse(), setDate(), setFullYear(), setHours(), setMilliseconds(), setMinutes(), setMonth(), setSeconds(), setTime(), setUTCDate(), setUTCFullYear(), setUTCHours(), setUTCMilliseconds(), setUTCMinutes(), setUTCMonth(), setUTCSeconds(), setYear(), toDateString(), toGMTString(), toLocaleDateString(), toLocaleString(), toLocaleTimeString(), toSource(), toString(), toTimeString(), toUTCString(), valueOf()
Error: constructor, description, message, name, number, prototype toString()
另外,继承自Error的对象包括:RangeError object, ReferenceError object, SyntaxError object, TypeError object, URIError object对象。
Function: arity, caller, constructor, length, prototype, arguments[] apply(), call(), toSource(), toString(), valueOf()
Global: Math, Infinity, NaN, undefined addClient(), addResponseHeader(), alert(), Array(), Boolean(), clearInterval(), clearTimeout(), Date(), escape(), eval(), execScript(), Function(), isFinite(), isNaN(), Number(), Object(), parseFloat(), parseInt(), setInterval(), setTimeout(), String(), typeof(), unescape()
Math: constructor E, LN10, LN2, LOG10E, LOG2E, PI, SQRT1_2, SQRT2 abs(), acos(), asin(), atan(), atan2(), ceil(), cos(), exp(), floor(), log(), max(), min(), pow(), random(), round(), sin(), sqrt(), tan()
Number: constructor, prototype MAX_VALUE, MIN_VALUE, NaN, NEGATIVE_INFINITY, POSITIVE_INFINITY toExponential(), toFixed(), toLocaleString(), toPrecision(), toSource(), toString(), valueOf()
Object: __parent__, __proto__, constructor, name, prototype assign(), eval(), hasOwnProperty(), isPrototypeOf(), propertyIsEnumerable(), toLocaleString(), toSource(), toString(), unwatch(), valueOf(), watch()
RegExp: $n, index, input, lastMatch, lastParen, leftContext, multiline, rightContext $&, $', $*, $+, $_, $`, constructor, global, ignoreCase, index, lastIndex, prototype, source compile(), exec(), test(), toSource(), toString()
String: constructor, length, prototype fromCharCode() anchor(), big(), blink(), bold(), charAt(), charCodeAt(), concat(), fixed(), fontcolor(), fontsize(), fromCharCode(), indexOf(), italics(), lastIndexOf(), link(), localeCompare(), match(), replace(), search(), slice(), small(), split(), strike(), sub(), substr(), substring(), sup(), toLocaleLowerCase(), toLocaleUpperCase(), toLowerCase(), toSource(), toString(), toUpperCase(), valueOf()
就交待道这里,进一步的细节请大家自行查阅相关资料,这些对象以及其相关的属性可以分为属性和方法两类,以有没有()后缀为标志,也可以分为可继承的(对象级的)和不可继承的(类级的)两类。关于是否可继承,参见我上面的描述。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值