Consider:
(考虑:)
var myArray = ['January', 'February', 'March'];
How can I select a random value from this array using JavaScript?
(如何使用JavaScript从此数组中选择随机值?)
var rand = myArray[Math.floor(Math.random() * myArray.length)];
1.4m articles
1.4m replys
5 comments
56.9k users