Math.floor(Math.random() * array.length)

mark  js 返回长度范围内的索引:Math.floor(Math.random() * array.length)

猜你喜欢

转载自blog.csdn.net/hety119/article/details/90447770
今日推荐