例:
<li>
<a class="auto" ng-click="nav($event.target)">
<span class="pull-right text-muted">
</a>
</li>
$scope.nav = function (target) {
var pclass = target.parentNode;
if (pclass.className === "active")
pclass.className = "";
else
pclass.className = "active";
}