html代码:
选择
js代码:
var app = angular.module('test', []);
app.controller('chkCtrl', function($scope){
$scope.showType=1;
$scope.sub = function(type){
if(type==1){
$scope.showType =2;
}
else if( $scope.showType ==2){
$scope.showType =1;
}
};
这代码点击勾选的时候有效