Math.round()方法
2个知识点:一个是Math对象,另一个是.round()方法
1、Math.round()就是:把一个数舍入为最接近的整数。
http://www.runoob.com/jsref/jsref-round.html
大多应用判断出入的数是否是正数
2、Math对象
Math对象用于执行数学任务。
Math对象并不像Date和String那样是对象的类,因此没有构造方法Math();
http://www.runoob.com/jsref/jsref-obj-math.html
3、若对你有所帮助请点个赞。