一、
Math.round(num) 四舍五入
Math.random() 随机小数
Math.pow(x, y) 返回 x 的 y 次幂的值
Math.round(Math.random()*Math.pow(10, 10))
二、
new Array(10) new 一个长度为10的数组对象
array.fill() 使用固定的值填充数组
Math.floor() 向下取整
array.join(‘分隔符’) 将数组单元中存储的数据,拼接为一个字符串
new Array(10).fill(1).map(num => Math.floor(num * Math.random() * 10)).join('');