码迷,mamicode.com
首页 > 其他好文 > 详细

angular手势事件之on-Hold

时间:2016-10-14 16:47:07      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:

.controller( ‘actionsheetCtl‘,[‘$scope‘,function($scope){
    $scope.onHold=function(){
        console.log(event.target);
}
}])
<button on-hold="onHold()" id="bt1" value="h" class="button">长按我!</button>

不用onHold(this) ,直接在function中通过event获取事件对象

angular手势事件之on-Hold

标签:

原文地址:http://www.cnblogs.com/zwhblog/p/5960707.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!