JavaScript Number 对象 Number 对象是原始数值的包装对象。 Number 创建方式 new Number()。 语法var num = new Number(value); 注意: 如果一个参数值不能转换为一个数字将返回 NaN (非数字值)。 相关文章: