菜单轮询
var prevMenuList;
menuPolling: function (ele, classes) {
var self = this;
var el = self.$el;
if (prevMenuList) {
el.find(prevMenuList).removeClass(classes)
}
prevMenuList = ele
el.find(prevMenuList).addClass(classes)
},
调用
self.menuPolling(menuList[menuNum], ‘active’)
卡酷jQuery menuPolling
最新推荐文章于 2024-11-12 16:01:03 发布