<body ng-controller="MainCtrl">
<div ng-click="goUrl('http://qiaole.sinaapp.com')">
<button type="button" ng-click="doSomeSth();$event.stopPropagation();">button</button>
</div>
</body>
angular js防止冒泡穿透事件
最新推荐文章于 2023-07-28 18:06:16 发布
<body ng-controller="MainCtrl">
<div ng-click="goUrl('http://qiaole.sinaapp.com')">
<button type="button" ng-click="doSomeSth();$event.stopPropagation();">button</button>
</div>
</body>