穆乙’s Blog 专一前端技术宁可像种子同样等待,也不肯像疲惫的陀螺 ,旋转得那样勉强javascript
floor向下取整:函数
Math.floor(0.20); Math.floor(0.90); Math.floor(-0.90); Math.floor(-0.20);
round四舍五入post
Math.round(0.2) Math.round(0.9) Math.round(-0.9) Math.round(-0.2)
ceil向上取整url
Math.ceil(0.2) Math.ceil(0.9) Math.ceil(-0.9) Math.ceil(-0.2)
上一篇:阻止事件冒泡
下一篇:javascript匿名函数
spa