If the array is empty, it returns undefined. var a = ['a', 'b', 'c']; ... 'b', 'c']; var b = a.reverse(); // both a and b are ['c', 'b', 'a'] array.shift( ) ...
確定! 回上一頁