JS pop push unshift shift的作用与区别 ... push:在数组的尾部加入一个元素,并返回原有length+1的长度。 ... pop:删除数组尾部第一个元素,并返回这个元素 ...
確定! 回上一頁