AngularJs在ng-click函数中如何获取代表当前元素的DOM对象

<input class="unchecked" type="checkbox" ng-model="item.isCustOmized" ng-click="switchCheckBox($event, item.isCustOmized)" />
$scope.switchCheckBox = function($event, value) {
      // console.log(value)
      if (value) {
        $($event.target).addClass("checked");
      } else {
        $($event.target).removeClass("checked");
      }
    }
可见只需要在函数参数中传入$event参数,在函数中使用$event.target就可以获取到了.