push将元素添加到数组尾部 unshift将元素添加到数组头部 var fruits = ["Banana", "Orange", "Apple", "Mango"]; fruits.unshift("Lemon","Pineapple"); // output => Lemon,Pineapple,Banana,Orange,Apple,Mango pop 移除最后一个元素 shift移除第一个元素 来源:CSDN作者:丰色木夕链接:https://blog.csdn.net/youlinhuanyan/article/details/104222747 标签 orange mango