附录一
<div id="outer" onclick="thingsHappen()">
<div id="inner"></div>
</div>
当我点击outer或inner div时,就处决了 things。 这是显而易见的。
Now I have got a need to define a different method for the inner div. For example
$("#inner").click(function() {
doThings();
});
When I click on inner both thingsHappen() and doThings() executes. How do I execute doThings() when I click on inner div without executing thingsHappen()?
I tried to unbind click method from #inner, but it did not work. PS. I cannot change the structure of HTML.