我猜你正在寻找这些方法。Array.shift() // Removes the first item from an array, and then returns the item removed.Array.pop() // Removes the last item from an array, and then returns the item removed.Array.splice() // I really can't be bothered to explain this one, so look at the link below.