<div class="provinceFont" data-ng-click="go($event)" ng-mouseenter="additemcss($event)" ng-mouseleave="removeitemcss($event)">{{y}}</div>
比如 上面demo要到达的效果是 1. 鼠标悬停 字变橙色 2. 鼠标离开 字 变黑色 3 点击 字 发生跳转
js 代码
$($event.target).text().toString()
$scope.areaId= $($event.target).attr("name");
$($event.target).css("color","#EC7600");
$($event.target).css("color","black");
原文链接:https://www.f2er.com/angularjs/146656.html