angularjs – 离子触发右键单击和中键单击时不需要的点击
发布时间:2020-12-17 07:26:54 所属栏目:安全 来源:网络整理
导读:我在最新的Chrome版本和Chrome金丝雀中使用Ionic以获得一些非常奇怪的原因右键单击会导致ng-click触发. Code Pen demonstrating the issue 任何人都可以解雇一些? 由此更改您的Button标签, button type="button" class="button button-large button-energiz
我在最新的Chrome版本和Chrome金丝雀中使用Ionic以获得一些非常奇怪的原因右键单击会导致ng-click触发.
Code Pen demonstrating the issue 任何人都可以解雇一些?
由此更改您的Button标签, <button type="button" class="button button-large button-energized" ng-click="test()">click me!!!</button> 要么 < button type =“button”class =“button button-large button-energized”ng-click =“test($event)”> click me !!!< / button> 并在您的控制器上: $scope.test = function($event){$event.preventDefault();alert(1); 希望这可以帮助. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容