标签:als event status tar hang mod angular change false
angular.module(‘myApp‘,[])
.controller(‘firstController‘,function ($scope) {
$scope.status=false;
$scope.changeStatus=function (event) {
$scope.status=! $scope.status;
//通过element转换成jquery对象
angular.element(event.target).html(‘切换状态为:‘+$scope.status);
};
});
标签:als event status tar hang mod angular change false
原文地址:http://www.cnblogs.com/zhuj/p/7685025.html