javascript取整数

Math.round(num)四舍五入 Math.floor(num)小于等于num的整数 Math.ceil()大于等于num的整数
posted @ 2009-07-16 14:26  94cool  阅读(273)  评论(0)    收藏  举报