正如jsfiddle所示,单个标记可以绑定到点击事件,而簇标记不能:http://jsfiddle.net/kdnxcwda/ 为什么以及如何使其工作? 我的Javascript代码: //An extract of address points from the LINZ bulk extract: http://www.linz.govt.nz/survey-titles/landonline
我通过点击一个嵌套元素来触发一个函数。为了防止冒泡,我可以使用e.stopPropagation();。 如果停止传播,其他脚本会遇到麻烦,因为它们依赖冒泡这些元素。有其他解决方法吗?某种if语句? HTML <div class="nested-element">
<div class="nested-element">
content
</div>
co