位置:海鸟网 > IT > JavaScript >

Microsoft JScript 特性 - ECMA

种类特性/关键字

数组处理Array, concat,
join, length, reverse, slice sort

赋值赋值 (=)
复合赋值(OP=)

Boolean Boolean

注释/*...*/ 或 //

常数/文字NaN
null
true, false
Infinity
undefined

控制流Break
continue
do...while
for
for...in
if...else
Labeled
return
switch
while

日期和时间Date
getDate, getDay, getFullYear, getHours, getMilliseconds, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear,
getUTCDate, getUTCDay, getUTCFullYear, getUTCHours, getUTCMilliseconds, getUTCMinutes, getUTCMonth, getUTCSeconds,
setDate, setFullYear, setHours, setMilliseconds, setMinutes, setMonth, setSeconds, setTime, setYear,
setUTCDate, setUTCFullYear, setUTCHours, setUTCMilliseconds, setUTCMinutes, setUTCMonth, setUTCSeconds,
toGMTString, toLocaleString, toUTCString, parse, UTC

声明Function
new
this
var
with

错误处理Error, description, number, throw, try...catch

函数创建Caller,Function
arguments, length

Global 方法Global
escape, unescape
eval
isFinite, isNaN
parseInt, parseFloat

数学Math
abs, acos, asin, atan, atan2, ceil, cos, exp, floor, log, max, min, pow, random, round, sin, sqrt, tan,
E, LN2, LN10, LOG2E, LOG10E, PI, SQRT1_2, SQRT2

数字Number
MAX_VALUE, MIN_VALUE
NaN
NEGATIVE_INFINITY, POSITIVE_INFINITY

对象创建Object
new
constructor, prototype, toString, valueOf

运算符加 (+), 减 (-)
算术取模 (%)
乘 (*), 除 (/)
负 (-)
相等 (==), 不相等 (!=)
小于 (<), 小于等于 (<=)
大于 (>)
大于等于 (>=)
逻辑与 (&&), 或 (||), 非 (!)
位与 (&), 或 (|), 非 (~), 异或 (^)
位左移 (<<), 右移 (>>)
无符号右移 (>>>)
条件 (?:)
逗号 (,)
delete, typeof, void
递减 (--), 递增 (++), 恒等 (===), 不恒等 (!==)

对象Array
Boolean
Date
Function
Global
Math
Number
Object
RegExp
String

正则表达式和模式匹配RegExp
index, input, lastIndex, $1...$9, source, compile, exec, test
Regular Expression Syntax

字符串String
charAt, charCodeAt, fromCharCode
indexOf, lastIndexOf
split
toLowerCase, toUpperCase
length
concat, slice
match, replace, search
anchor, big, blink, bold, fixed, fontcolor, fontsize, italics, link, small, strike, sub, sup