MDN官网:https://developer.mozilla.org/zh-CN/
MDN官网JavaScript文档:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript

=========================================================================



3.3.1、Math绝对值和三个取整方法
注意Math.round()四舍五入方法有个特殊情况(遇到.5往大了取整)

本文介绍了如何在MDN官网学习JavaScript中对象的方法,重点讲解了Math内置对象的使用,包括求最大值、自定义数学对象、Math对象的绝对值和取整方法,以及Math.Random()的随机数生成。
MDN官网:https://developer.mozilla.org/zh-CN/
MDN官网JavaScript文档:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript

=========================================================================



注意Math.round()四舍五入方法有个特殊情况(遇到.5往大了取整)

521
658
1243

被折叠的 条评论
为什么被折叠?