AngularJs 阻止事件运行,防止冒泡穿透事件

 ng-click 低啊用方法后 添加语句$event.stopPropagation();
 <button type="button" ng-click="doSomeSth();$event.stopPropagation();">button</button> 

  

posted @ 2017-08-17 09:03  庞国明  阅读(1018)  评论(0)    收藏  举报