var num = Number("10"); //类型转换var num2 = new Number("10"); //基本包装类型console.log(typeof num); //numberconsole.log(typeof num2); //object
原文地址:https://www.cnblogs.com/L-G-Y/p/10001407.html
时间: 2024-11-13 07:54:26
var num = Number("10"); //类型转换var num2 = new Number("10"); //基本包装类型console.log(typeof num); //numberconsole.log(typeof num2); //object
原文地址:https://www.cnblogs.com/L-G-Y/p/10001407.html