如何使用内联onclick属性停止事件传播?
考虑以下几点:
<div onclick="alert('you clicked the header')" class="header"> <span onclick="alert('you clicked inside the header');">something inside the header</span> </div>
如何使其在用户单击span时不会触发div点击事件?
div
鸿蒙传说
萧十郎
BIG阳
相关问题
相关分类