老师 请回答一下
(function($){
function dropdown(elem) {
var $elem = $(elem),
activeClass = $elem.data('active') + '-active';
$elem.hover(function() {
$elem.addClass(activeClass);
}, function() {
$elem.removeClass(activeClass);
});
}
$.fn.extend({
dropdown:function(){
return this.each(function(){
dropdown(this);
});
}
});
// $.fn.UidropDown=function () {
// return this.each(function(){
// dropdown(this);
// });
// }
})(jQuery);
这段是之前下拉菜单的
这里并没有指定window.mt 没有暴露再全局 但是依然可以全局使用是为什么

恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星