摘要: js生成随机数 1. 先说几个Math函数 Math.floor() 向下取整 Math.ceil() 向上取整 parseInt() 解析一个字符串,并返回一个整数 Math.random() 获取0-1之间的随机数 Math.round() 四舍五入 2. 获取伪随机数 获取0-9的随机数 pa 阅读全文
posted @ 2019-01-14 14:39 天边飞来的鸟 阅读(6984) 评论(0) 推荐(1) 编辑