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

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

相关文章:

  • 2021-11-24
  • 2021-12-24
  • 2022-12-23
  • 2021-08-27
  • 2022-03-06
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-05
  • 2021-05-18
  • 2021-10-30
  • 2022-12-23
  • 2021-12-10
  • 2021-11-26
  • 2021-07-01
相关资源
相似解决方案