专题文章
时长:00:00更新时间:2020-11-27 21:19:08
js数组操作之pop,push,unshift,splice,shift_javascript技巧: 代码如下: Array.prototype.pop=function(){ if(this.length!=0)this.length--; return this; } pop 方法 移除数组中的最后一个元素并返回该元素。 arrayObj.pop( ) 必选的 arrayObj 引用是一个 Array 对象。 说明 如果
查看详情