alert(Math.ceil(25.9));
//26
alert(Math.ceil(25.5));
//26
alert(Math.ceil(25.1));
//26
alert(Math.round(25.9));
//26
alert(Math.round(25.5));
//26
alert(Math.round(25.1));
//25
alert(Math.floor(25.9));
//25
alert(Math.floor(25.5));
//25
alert(Math.floor(25.1));
//25
转载于:https://www.cnblogs.com/damsoft/p/6089530.html
转载请注明原文地址: https://win8.8miu.com/read-1478312.html