标签:
<li ng-click="getApplicationListByType(1,$event)"><a>医疗健康</a></li>
//根据类型获取服务列表
$scope.getServiceListByType = function(item,e){
console.log("$event:",e);
console.log("$event.target:",e.target);
console.log("$event.currentTarget:", e.currentTarget);
}
//根据类型获取服务列表 $scope.getServiceListByType = function(item,e){ var obj = e.currentTarget; angular.element(obj).addClass(‘active‘); var childObj = e.target; angular.element(childObj).addClass(‘‘); } |
Angular‘s jqLitejqLite provides only the following jQuery methods:
|
标签:
原文地址:http://www.cnblogs.com/wuwanyu/p/wuwanyu20160318.html