标签:
(function ($) {
$.extend({
BE: function (opt) {
var def = {
id: null,
type: null,
fun: null
}
$.extend({}, opt, def);
$(document).delegate(opt.id, opt.type, opt.fun);
}
});
})(jQuery);
$(function () {
$.BE({
id: "#hbgk_hyfn_flbox dd",
type: "mouseenter",
fun: function (e) {
$("#hbgk_hyfn_flbox dd").removeClass("current");
$(this).addClass("current");
$(".hbgk_hyfa_box").hide().eq($(this).index()).show();
}
});
})标签:
原文地址:http://www.cnblogs.com/gulehoo/p/4283531.html