摘要: 1、random()方法 语法:Math.random()作用:获取一个0-1之间的随机小数,包含0,但不包含1返回值:0-1之间的随机小数 2、round()方法 语法:Math.round(数字)作用:对数字进行四舍五入取整返回值:四舍五入后的整数 3、ceil()方法 语法:Math.ceil 阅读全文
posted @ 2022-02-27 13:13 ljllh 阅读(237) 评论(0) 推荐(0)