3
我想将jquery选择器的结果保存到数组中,以便稍后可以引用每个元素。将jquery选择器结果保存到数组中
我想这...
var found_slides = []; //create the array to hold selector results
found_slides = $(".slide"); //run the selector and store results
var current_slide = found_slides.length - 1; //find the last slide
found_slides[current_slide].fadeOut(2500); //fade out the last slide, reveals next one
目前,这不是让我在阵列实例上运行任何jQuery函数。什么是存储和引用JQuery选择器结果的正确方法?
谢谢。
啊üHAZ亲codez。 – Dan 2010-09-15 20:34:45