If no event handlers processed the click, the event will travel back up the same path until it comes back to the root element, where the default click handler will ignore it.
如果没有事件处理程序处理这个单击事件,它就会沿着同样的路线再返回到根元素,这时根元素默认的单击处理程序将忽略该事件。
Finally, get the author's name by jumping from the element, back up to its parent, then using find('author>name').
最后,从 元素跳回到它的父元素,接着使用 find('author>name'),获得作者的用户名。
After a chance for ordinary target processing, a second journey, called bubbling, starts at the target element and ends up back at the document root.
进行常规的目标处理后,第二次旅行称为冒泡(bubbling),从目标元素开始,再回到文档根。
应用推荐