标签:blog http io ar sp on div 2014 log
var last = "";
var lastIndex = "";
$(".ykyw_list2 ul li").click(function(){
var current = $(this);
var currentIndex = $(this).index()+1;
if (currentIndex != lastIndex && lastIndex != "") {
last.removeClass("li_now");
last.next("div").hide();
}
$(this).addClass("li_now");
$(this).next("div").toggle();
last = current;
lastIndex = currentIndex;
})
标签:blog http io ar sp on div 2014 log
原文地址:http://www.cnblogs.com/cornucopia/p/4162958.html