javaScript内置 3.Number 4.Boolea

2018-01-12  本文已影响4人  咘噜咘噜咘

属性:
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() 返回数教对象的本初值
4.Boolean
属性:
constructor 所树立对象的函数参考
prototype 可以为对象参加的属性和方式
法子:
toSource() 显示对象的流代码
toString() 将布我值转换为字符串,并且返回成果
valueOf() 返回布我对象的原始值

上一篇 下一篇

猜你喜欢

热点阅读