Math.round()

js中的round函数,返回一个数字四舍五入后的结果
例如:
1.4-->1
1.5-->2

posted @ 2020-10-08 02:11  轩辕吊雷  阅读(165)  评论(0)    收藏  举报