标签:
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‘);
}
标签:
原文地址:http://www.cnblogs.com/zhzixuehongqx/p/5314842.html