<!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>
web前端,jquery实现瀑布流总结3,Math.floor()对数进行下舍入
最新推荐文章于 2021-07-19 14:14:17 发布