如果一个事件发生可能会阻止他人提高吗?如何防止事件发生?
$(window).click(
function(e)
{
$("#out").html("preventing next event from happening\n");
});
$(window).click(
function(e)
{
$("#out").html($("#out").html() + "evil event should not write here");
});
事件的顺序并不重要。重要的是,如果一个人执行其他人不这样做。 – BrunoLM 2011-03-08 21:53:46
http://stackoverflow.com/questions/209029/best-way-to-remove-an-event-handler-in-jquery – n00b 2011-03-08 21:56:34