会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小赖皮
CnBlogs
Home
New Post
Contact
Admin
Subscription
2017年7月19日
js四舍五入
用X.toFixed(2)是5舍6入的, function xround(x, num){ return Math.round(x * Math.pow(10, num)) / Math.pow(10, num) ;} xround(X,2)这样才是四舍五入
Read More
posted @ 2017-07-19 11:37 小赖皮
Views(96)
Comments(0)
Diggs(0)
Edit
公告