i can use this code to remove click event,
$('p').unbind('click')
but , has some method to remove all event ?
has a method named unbindAll
in jquery ?
thanks
Для этого вы можете вызвать .unbind ()
без параметров:
$('p').unbind();
Из документы :
В простейшем случае, без аргументов
.unbind ()
удаляет все обработчики, прикрепленные к элементам.