方法: abs(x) 返回数字的绝对值 acos(x) 返回数字的反余弦值 asin(x) 返回数字的反正弦值 atan(x) 返回位于-PI/2 和 PI/2 的反正切值 atan2(y,x) 返回(x,y)位于 -PI 到 PI 之间的角度 ceil(x) 返回 x 四舍五入后的最大整数 cos(x) 返回一个数字的余弦值 exp(x) 返回 E^x 值 floor(x) 返回 x 四舍五入后的最小整数 log(x) 返回底数为E的自然对数 max(x,y) 返回 x 和 y 之间较大的数 min(x,y) 返回 x 和 y 之间较小的数 pow(x,y) 返回 y^x 的值 random() 返回位于 0 到 1 之间的随机函数 round(x) 四舍五入后取整 sin(x) 返回数字的正弦值 sqrt(x) 返回数字的平方根 tan(x) 返回一个角度的正切值 toSource() 显示对象的源代码 valueOf() 返回数学对象的原始值
3.Number 属性: MAX_VALUE The largest possible value a number in JavaScript can have 1.7976931348623157E+308 MIN_VALUE The smallest possible value a number in JavaScript can have 5E-324 NaN Equal to a value that is not a number. NEGATIVE_INFINITY A value that is less than MIN_VALUE. POSOTIVE_INFINITY A value that is greater than MAX_VALUE. prototype A static property of the Number object
方法: toString Returns a string representing the specified object valueOf() 返回数学对象的原始值
6.Array 属性: constructor 所建立对象的函数参考 prototype 能够为对象加入的属性和方法 index For an array created by a regular expression_r match, the zero-based index of the match in the string. input For an array created by a regular expression_r match, reflects the original string against which the regular expression_r was matched. length 获取数组元素的个数,即最大下标加1
7.RegExp 属性: $1, ..., $9 Parenthesized substring matches, if any. $_ See input. $* See multiline. $& See lastMatch. $+ See lastParen. $` See leftContext. $' See rightContext. global Whether or not to test the regular expression_r against all possible matches in a string, or only against the first. ignoreCase Whether or not to ignore case while attempting a match in a string. input The string against which a regular expression_r is matched. lastIndex The index at which to start the next match. lastMatch The last matched characters. lastParen The last parenthesized substring match, if any. leftContext The substring preceding the most recent match. multiline Whether or not to search in strings across multiple lines. rightContext The substring following the most recent match. source The text of the pattern.
方法: compile Compiles a regular expression_r object. exec Executes a search for a match in its string parameter. test Tests for a match in its string parameter
8.Function 属性: arguments An array corresponding to the arguments passed to a function. arity Indicates the number of arguments expected by the function. caller Specifies which function called the current function. prototype Allows the addition of properties to a Function object.
方法: toString Returns a string representing the specified object.
9.Object 属性: constructor Specifies the function that creates an object's prototype. prototype Allows the addition of properties to all objects.
方法: uates a string of JavaScript code in the context of the specified object. toString Returns a string representing the specified object. unwatch Removes a watchpoint from a 属性源 the object. valueOf Returns the primitive value of the specified object. watch Adds a watchpoint to a 属性源 the object.
10.全局 属性: Infinity 指定一个正负无穷大的数值 NaN 指定一个 “非数字” 值 undefined 指定一个未被赋值的变量