jquery怎么取消dom上绑定的方法

2025-03-04 08:41:19
推荐回答(2个)
回答1:

如果你是用on绑定的话,可以用off解绑
如果你是用bind绑定的话,可以用unbind解绑
不过现在推荐都用on去绑定事件

回答2:

$("dom").unbind("事件名");