2019年4月4日

js的向上取整(Math.ceil)向下取整(Math.floor)四舍五入(Math.round)

摘要: <script language="javascript"> Math.floor(5.55) //向下取整 结果为5 Math.floor(5.99) //向下取整 结果为5 Math.ceil(5.21) //向上取整,结果为6 Math.ceil(5.88) //向上取整,结果为6 Math. 阅读全文

posted @ 2019-04-04 11:50 奔驰的码儿 阅读(562) 评论(0) 推荐(0)

导航