0
을 클릭 취소?나는 다음과 같은 한 이벤트
을 클릭 취소?나는 다음과 같은 한 이벤트
내가
enquire.register(value, {
match: function() {
$('nav.menu a[href="#"]').on('click.match', function() {
$(this).next('ul').toggle();
})
},
unmatch: function() {
$('nav.menu a[href="#"]').off('click.match');
}
});
당신이 이쪽을 봐나요 핸들러 제거하는 namespaced click 이벤트 및 .off()를 사용하는 것을 선호합니다 : http://stackoverflow.com/questions/209029/best-way-to-remove-에게 이벤트 처리기에서 jquery? – Eugene
당신은'$ (this) .next ('ul')를 시도 했습니까? untoggle();' – adeneo