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) ``` ![image](https://user-images.githubusercontent.com/21036983/85120979-9847df00-b256-11ea-8095-4b32d2111835.png) #### 给对象加上Array的splice方法变成伪数组 `obj.splice= Array.prototype.splice` ![image](https://user-images.githubusercontent.com/21036983/85121699-cd086600-b257-11ea-98ef-da2134f0b78b.png)