有那么一群人:他们从来不进市场购物,却在研究着你的物价。 有那么一群人,他们从来不要买房,却在研究着你的房价。 他们从来不用交养老钱,却在研究着你的社保。 有那么一群人,他们从来都不会失业,却在研究着你的下岗。 他们儿孙都在美国,却在研究着你该如何爱国。
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必须是静态的。
评论
发表评论