JavaScript Array pop(),shift()函数

pop()        删除数组的最后一个元素并返回删除的元素
shift()    删除并返回数组的第一个元素
原文地址:https://www.cnblogs.com/sallet/p/4193139.html