https://cnodejs.org/topic/56ef3edd532839c33a99d00e 前端资源

点击展开收起

varmsgSlide:function(cBut,type,icoClass){
$(cBut).bind(type,function(){
if(cBut.hasClass("icone61b")){
$(this).addClass("icone60d");
}
$(this).toggleClass(icoClass);
$(this).parent().parent().next().toggle();
})
} //默认第一个是展开的
msgSlide:function(cBut,type,icoClass){
$(cBut).bind(type,function(){
$(this).toggleClass(icoClass);
$(this).parent().parent().next().toggle();
})
}//默认情况下所有适用,但结构会有些限制
//调用
msgHouse.msgSlide($(".tit-txt i"),"tap","icone61b");
posted @ 2016-03-31 13:49  乐淘淘zzxh  阅读(247)  评论(0编辑  收藏  举报