标签:code class document uil float ack parse rac doc
document.write(parseInt("10") + "<br>"); => 10
document.write(parseInt("10.33") + "<br>"); => 10
document.write(parseInt("34 45 66") + "<br>"); => 34
document.write(parseInt(" 60 ") + "<br>"); => 60
document.write(parseInt("40 years") + "<br>"); => 40
document.write(parseInt("He was 40") + "<br>"); => NaN
document.write(parseFloat("10") + "<br>"); => 10
document.write(parseFloat("10.33") + "<br>"); => 10.33
document.write(parseFloat("34 45 66") + "<br>"); => 34
document.write(parseFloat(" 60 ") + "<br>"); => 60
document.write(parseFloat("40 years") + "<br>"); => 40
document.write(parseFloat("He was 40") + "<br>"); => NaN
标签:code class document uil float ack parse rac doc
原文地址:https://www.cnblogs.com/xnova/p/10599164.html