秦小小樱

导航

2017年12月12日 #

取整

摘要: 像下取整 parseInt(); //但要注意 parseInt 第一个字符需要是数字 不然返回NaN; Math.floor(); 四舍五入 Math.round(); 向上取整 Math.ceil(); 阅读全文

posted @ 2017-12-12 11:44 RonnieQin 阅读(209) 评论(0) 推荐(0)