js 让小数四舍五入保留两位小数的函数是?
例子:data.relations[i].data[j].toFixed(2)
toFixed(2)这个函数就是保留两位小数的作用
posted on 2015-09-22 09:48 学无止境2023 阅读(160) 评论(0) 编辑 收藏 举报