更新时间:2023-11-21 10:21:22
您可以通过 $事件
的功能,并从找出事件的目标
You could pass the $event
to the function, and figure out the target of the event from that:
<input type="text" ng-model="cntrlr.inpt" ng-blur="cntrlr.blurr($event)" />
<input type="text" ng-model="cntrlr.second" ng-blur="cntrlr.blurr($event)" />
和
$scope.blurr = function(event){
var $this = $(event.target);
console.log($this);
};