jQuery stopPropagation bubble down
问题 I have a div with a link inside of it: <div id=\"myDiv\"> <a href=\"http://www.lol.com\">Lol</a> </div> Clicking the <div /> should go somewhere, but clicking the child <a /> should go to www.lol.com. I\'ve seen from previous questions and the jQuery website that .stopPropagation prevents bubbling upwards, but how do I prevent a bubble downwards (isn\'t that what\'s necessary here?). 回答1: Events only bubble up. So the click event handler for the a element is fired before the click event