angular js防止冒泡穿透事件

<body ng-controller="MainCtrl">  

   <div ng-click="goUrl('http://qiaole.sinaapp.com')">  

     <button type="button" ng-click="doSomeSth();$event.stopPropagation();">button</button>  

   </div>  

</body>  

猜你喜欢

转载自blog.csdn.net/ww350323242/article/details/81111846
今日推荐