📌  相关文章
📜  javascript 将字符串转换为浮点数 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:37.656000             🧑  作者: Mango

代码示例3
//do do this use parseFloat()
//it turns a string into a float in js
//you can later use this for animation
var string = "10"
string = parseFloat(string)
console.log(string)