【codeReview】button-disabled

1. Problem description:

I want to uniformly modify the disabled of the button through the class tag, but the disablement is not implemented in 4 places in the figure

js page code

$(".readORedit").attr("disabled",true);

 2. The problem

Impact of ng-reapet for form data binding (exact reason unknown)

3. Solutions

Use ng-disabled to control the button in the form

js page code

$scope.testor=function(){
    return true;
}

  ng-disabled is a unique feature of angular, which can be followed by the expression expression

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325339664&siteId=291194637