JS的四舍五入

//Math.ceil 向上取整
//Math.floor 向下取整
//Math.round 四舍五入
//parseInt 丢弃小数部分,保留整数部分

posted @ 2018-02-07 17:32  笑傲江湖ad8  阅读(150)  评论(0)    收藏  举报