摘要: 一、Math对象 点语法 1、abs(x) 取绝对值 2、ceil(x) 向上取整 3、floor(x) 向下取整 4、random() 无参数 取随机数 区间[0,1) 5、round(x) 四舍五入 取任意区间的随机数 var n = Math.floor(Math.random() * (最大 阅读全文
posted @ 2022-07-06 19:45 巽上 阅读(25) 评论(0) 推荐(0)