js toFixed() 方法-----前端使得数字按须要的位数进行四舍五入。

须要取几位小数就取几位小数。javascript 姿式以下:java '100.112233'.toFixed(1) //报错 //VM9656:1 Uncaught TypeError: "100.112233".toFixed is not a function(…)(anonymous function) @ VM9656:1 100.112233.toFixed(1) //结果:"100
相关文章
相关标签/搜索