var homMsg:function(){
tabSwitch: function(type, menus, cons, menuClass, conClass) {
menus.each(function(index, ele) {
$(ele).attr({
‘data-index‘: index
});
});
menus.on(type, function() {
var $target = $(this),
$index = Number($target.attr(‘data-index‘));
menus.removeClass(menuClass).eq($index).addClass(menuClass);
cons.removeClass(conClass).eq($index).addClass(conClass);
});
}
}
$function(){
var $brandDetailIntro = $(".evelue"),
$nav = $brandDetailIntro.find(‘.eve-list li‘),
$con = $brandDetailIntro.find(‘.eve-txt‘);// 变化的大模块
msgHouse.tabSwitch(‘mouseenter‘,$nav,$con,‘active‘,‘active‘);
}
时间: 2024-10-05 04:31:56