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

mark  js 返回长度范围内的索引:Math.floor(Math.random() * array.length)dom
相关文章
相关标签/搜索