I would like to remove the last element i.e. 2. I used arr.slice(-1); but it doesn't remove the value. ... Array.prototype.pop() by JavaScript convention.
確定! 回上一頁