工作的tybe
食品
营销
技术类别
会计课
行政级
家畜
函数DropDown(el){
This.dd=el;
this.initEvents();
}
DropDown.prototype={
initEvents: function(){
Var obj=this;
Obj.dd.on('click',function(event){
$(本).toggleClass( '激活');
event.stopPropagation();
});
}
}
$(function(){
Var dd=new DropDown($('#dd'));
$(document).click(function(){
//所有下拉菜单
$( '包装-下拉-5 ')removeClass(' 激活')。
});
});