我正在使用fullpage.js插件,在事件onLeave中有一个函数,下面是jquery代码
onLeave: function(index, nextIndex, direction) {$('#section-first').find('.a').each(function() { // i want run once then off / remove this function(index >= 2 && direc
var el = $('#'+element); el.on('click',callback); 然后我尝试使用off对我有效,但我也不得不在enableElement上删除它。有时我不得不叫它两次,所以它还在堆叠。终于成功了,谢谢!disableElement:function(element){