摘要: Math是内置对象:系统提供 直接使用,不用做其他处理,是数学对象,提供了数学方面的操作。 1 Math.round(); //四舍五入 2 Math.random(); //取随机数(指定范围) 3 Math.abs(); //返回绝对值 4 Math.ceil(); //向上取整 5 Math. 阅读全文
posted @ 2019-12-22 19:46 阿民啊 阅读(209) 评论(0) 推荐(0) 编辑