摘要: 一、math方法: ①Math.PI: 圆周率 ② Math.random():随机数,随机产生0-1之间的数,不包括0,1 ③ Math.round(): 取最近的整数 ④Math.ceil():向上取整 ⑤Math.floor():向下取整 ⑥Math.max():参数是多个数字,求最大数字 ⑦ 阅读全文
posted @ 2020-05-08 19:21 油画家的第一站 阅读(128) 评论(0) 推荐(0) 编辑