标签:
parseInt("123abc"); //123
parseInt("1.73"); //1
parseInt(".123"); //NaN
var d = "010"; parseInt(d); //8
var e = "Ox"; parseInt(e); //16
parseInt("10",2); //2
parseInt("10",8); //8
parseInt("10",10); //10
标签:
原文地址:http://www.cnblogs.com/luoxiaolei/p/4266551.html