📜  javascript 字符串浮动 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:30.854000             🧑  作者: 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)