例如,我有:
<button ng-disabled="!isSomethingValid() || loading || disabled" ... class="btn btn-primary">但是,ng-disable属性计算其表达式的条件是什么?
发布于 2015-09-03 19:54:14
ng-disabled用于当值返回true时禁用DOM元素。
<button ng-disabled="mySwitch">Click Me!</button>
<button type = "text" ng-click = "fnDemo();">Button</button>
$scope.mySwitch = true;
$scope.fnDemo = function(){
$scope.mySwitch = !$scope.mySwitch;
};https://stackoverflow.com/questions/32374461
复制相似问题