web前端,jquery实现瀑布流总结3,Math.floor()对数进行下舍入
2015-10-01 16:03
751 查看
<!DOCTYPE html> <!--Math.floor()对数进行下舍入--> <!--参考http://www.w3school.com.cn/jsref/jsref_floor.asp--> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> </head> <body> <script type="text/javascript"> document.write(Math.floor(0.60) + "<br />") document.write(Math.floor(0.40) + "<br />") document.write(Math.floor(5) + "<br />") document.write(Math.floor(5.1) + "<br />") document.write(Math.floor(-5.1) + "<br />") document.write(Math.floor(-5.9)) </script> </body> </html> 参考:ttp://www.w3school.com.cn/jsref/jsref_floor.asp
相关文章推荐
- web前端,jquery实现瀑布流总结2,each遍历
- web前端,jquery实现瀑布流总结1,eq()函数的用法
- Eclipse插件之jQueryWTP插件的安装方法
- web前端,jquery实现瀑布流(鼠标滚动不断加载)
- jQuery 遍历 - each() 方法
- Jquery时间联动
- jQuery实现点击页面获得当前点击元素的id
- jQuery来源学习笔记:整体结构
- jquery一些技巧总结
- 谈谈jquery性能优化的常用策略
- 菜鸟好文推荐(十七)——人人都会的35个Jquery小技巧
- jQuery学习
- JQuery 初识
- springMVC与jquery和ajax结合
- jQuery中.bind() .live() .delegate() .on()的区别
- MyEclipse 安装JQuery自动提示功能
- jQuery源码学习 之 each迭代器
- 简单实用的jquery分页插件
- 读jQuery官方文档:数据方法与辅助方法
- 使用jquery-form.js,直接提交表单至后台(springmvc)