if(item.style.display == “block”){
jQuery(item).slideToggle(500,function(){
jQuery(item).prev().toggleClass(“active”);
});
//item.style.display = “none”;
}else{
jQuery(item).slideToggle(500,function(){
jQuery(item).prev().toggleClass(“active”);
});
//item.style.display = “block”;
}
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/13407.html