var x = '33';//很巧妙的类型转换
console.log(typeof (x - 0));//number
console.log(typeof (x + ''));//string
var str = new String();
console.log(str.length);//仍为0,调用的是String包装类的length属性str.t = 1;console.log(str.t);//undefined版权声明:本文为u014682977原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。