📅  最后修改于: 2022-03-11 15:03:08.133000             🧑  作者: Mango
var buttonColours=["red", "blue", "green", "yellow"];
var gamePattern=[];
function nextSequence(){
var randomNumber = Math.floor(Math.random()*4);
var randomChosenColour= buttonColours[randomNumber];
gamePattern.push(randomChosenColour);
$("#randomChosenColour").fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);
}