发布于 3年前

js 生成一个带有随机数的列表

Array.from({ length: 1000 }, Math.random)
// [ 0.6163093133259432, 0.8877401276499153, 0.4094354756035987, ...] - 1000 items
©2020 edoou.com   京ICP备16001874号-3