📅  最后修改于: 2022-03-11 15:02:52.893000             🧑  作者: Mango
var colors = ["red","blue","green","yellow"];
var randomColor = colors[Math.floor(Math.random()*colors.length)]; //pluck a random color