摘要:
阅读全文
posted @ 2012-12-12 17:36
一路前行
阅读(210)
评论(0)
推荐(0)
摘要:
我们知道,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 阅读全文
posted @ 2012-12-12 15:47
一路前行
阅读(267)
评论(0)
推荐(0)
浙公网安备 33010602011771号