你想要做的,就是和pop方法一样的事情:var arr = [1,2,3,4]; //... var last = arr.pop(); // returns 4, and arr will contain now [1, 2, 3]