摘要:
阅读全文
摘要:
我们知道,Array.prototype.slice.call(arguments)能将具有length属性的对象转成数组,除了IE下的节点集合(因为ie下的dom对象是以com对象的形式实现的,js对象与com对象不能进行转换)如:vara={length:2,0:'first',1:'second'};Array.prototype.slice.call(a);//["first","second"]vara={length:2};Array.prototype.slice.call(a);//[undefined,u 阅读全文