总想为这段时间留下点什么,生怕回过头,它们就悄悄淡去,再也找不到它们存在过得痕迹。人生的很多日子都会这样渐渐远去以至于你都记不起它们存在过,以至于你都开始怀疑它们是否曾经如此的真实。
return false from within a jQuery event handler is effectively the same as calling both e.preventDefault and e.stopPropagation on the passed jQuery.Event object. e.preventDefault() will prevent the default event from occuring, e.stopPropagation() will prevent the evet from bubbling up and return false will do both. Note that this behaviour differs from normal (non-jQuery) event handlers, in which, notably, return false does not stop the event from bubbling up . 所以on前半部分的selector必须是静态的。
评论
发表评论