Chi shengqi
Results
1
comments of
Chi shengqi
#### 调用Array的push方法,累加对象length ``` var obj = { length: 2 } Array.prototype.push.call(obj,1) Array.prototype.push.call(obj,2) ```  #### 给对象加上Array的splice方法变成伪数组 `obj.splice= Array.prototype.splice` 