parseInt()的介绍在Javascript的全局对象的方法
复制代码代码如下所示:parseInt()的全局对象的方法
*
在parseInt()函数可以解析字符串并返回一个整数。
1。解析字符串直到无法解析
2。在转换中,字符串被解析,直到无法解析为止。
* /
document.write(parseInt(123)+); / / 123
document.write(parseInt(1abc23 )+); / / 1
document.write(parseInt(123abc )+); / / 123
document.write(parseInt(ABC)+); / /南
document.write(parseInt(100
document.write(parseInt(123