<button ng-disabled="test()">按钮</button>
angular.module('myApp', []).
controller('c',function($scope){
$scope.test=function(){
console.log('为什么打印两次');
return false;
}
})
不负相思意
相关分类