ionic获取事件中的对象

ng-click="submit1($event, 'argsTest’)"
$scope.submit1=function(event, args){
  var target = event.currentTarget;
  console.log('[Trade1Page1Ctrl.submit1]name:'+target.getAttribute('name'));
  console.log('[Trade1Page1Ctrl.submit1]args:'+args);
}

 

posted @ 2016-02-19 10:13  广林  阅读(533)  评论(0编辑  收藏  举报