angularjs操作dom节点
1.通过ng-click获取当前节点
<span ng-if="j.curTagsCountC==1" ng-click="liuyan_zan($event)">
$scope.liuyan_zan = function(a){
console.log(a);
var jiedian_1 = a.target;//这个就是当前节点的
console.log(jiedian_1);
}
1.通过ng-click获取当前节点
<span ng-if="j.curTagsCountC==1" ng-click="liuyan_zan($event)">
$scope.liuyan_zan = function(a){
console.log(a);
var jiedian_1 = a.target;//这个就是当前节点的
console.log(jiedian_1);
}