JQuery参考
=================================================================http://www.oschina.net/news/23240/jquery-skills?from=201111203. 数组方式使用jQuery对象运行选择器的结果是一个jQuery对象。然而,jQuery类库让你感觉你正在使用一个定义了index和长度的数组。// Selecting all the navigation buttons:var buttons = $(‘#navigation a.button’);// We can loop though the collection:for(var i=0;i<buttons.length;i++){ console.log(buttons[i]); // A DOM element, not a jQuery object}// We can even slice it:var firstFour = buttons.slice(0,4);如果性能是你关注的,
...