1.阻止onclick事件
采用window.event.stopPropagation();
示例:
**HTML:**<div onclick = "feather()"><div onclick = "son()"></div> </div>**JS:**function feather(){......}function son(){window.event.stopPropagation();}
时间:2020-06-03 01:02:00
1.阻止onclick事件
采用window.event.stopPropagation();
示例:
**HTML:**<div onclick = "feather()"><div onclick = "son()"></div> </div>**JS:**function feather(){......}function son(){window.event.stopPropagation();}