在控制台输出对象为数组

functionElementWrapper(id){
   
this[0]= document.getElementById(id);
   
this.length =1;
   
this.splice =Array.prototype.splice;
}



  • 对象的索引值含有数字
  • 对象含有length属性
  • 对象含有splice属性
posted @ 2012-09-27 15:02  孙海勋  阅读(560)  评论(0编辑  收藏  举报