parseInt用来将数字字符串转化为整数 parseInt(string,radix); string:想要转换的字符串 radix:转换的进制数,也就是基数 例如:parseInt("32",10); 结果:32