在控制台输出对象为数组
functionElementWrapper(id){
this[0]= document.getElementById(id);
this.length =1;
this.splice =Array.prototype.splice;
}
- 对象的索引值含有数字
- 对象含有length属性
- 对象含有splice属性
切忌浮躁
functionElementWrapper(id){
this[0]= document.getElementById(id);
this.length =1;
this.splice =Array.prototype.splice;
}