var array=new Array(); array.push(值); //向数组中添加值 array.shift(值);//向数组中移除值 转载于:https://www.cnblogs.com/superMay/p/6025850.html