var more=function(){
$(".cat-sub .more").toggle(function(){
$(this).addClass("more1");
$(".cat-more").show(300);
},function(){
$(this).removeClass("more1");
$(".cat-more").hide(300);
})
}
$(document).ready(function(){
more();
})
jquery toggle用法
最新推荐文章于 2020-04-22 08:33:16 发布