var numVal = 30.1111
numVal toFixed(2)//参数是保留的位数
js中的四舍五入
最新推荐文章于 2024-03-18 10:52:22 发布
var numVal = 30.1111
numVal toFixed(2)//参数是保留的位数