Angularjs--dom
1<! DOCTYPE html>234<meta charset= "UTF-8" >5<meta name= "viewport" content= "Width=device-width, initial-scale=1, maximum-scale=1, User-scalable=no" >6<title>index</title>7<link href= "{$Think. Const. Cssurl}bootstrap.min.css "rel=" stylesheet "type=" Text/css "/>8<script src= "{$Think. Const. Js}jquery.min.js "type=" Text/javascript "></script>9<script src= "{$Think. Const. Js}bootstrap.min.js "type=" Text/javascript "></script>Ten<script src= "{$Think. Const. Js}angular.min.js "type=" Text/javascript "></script> One<link href= "{$Think. Const. Cssurl}home/index.css "rel=" stylesheet "type=" Text/css "/> A -<body ng-app= "MyApp" ng-controller= "Myctrl" > -<divclass= "Container" > theclass= "Page-header" > Front-end technology - -<p> -<buttonclass= "Btn btn-primary" ng-click= "Dis ()" > Disable </button> +</p> -<divclass= "Form-group" > +<label for= "" > Message:</label> A<textareaclass= "Form-control" ng-disabled= "nd" ></textarea> at</div> - -<p> -<buttonclass= "Btn btn-primary" ng-click= "Hide ()" > Hide </button> -</p> -<divclass= "Jumbotron" ng-hide= "ns" > in -</div> to +$Think. Const. Homeimg}/01.png "/> -</div> the</body> *<script> $App = Angular.module ("MyApp",[]);Panax NotoginsengApp.controller ("Myctrl",function($scope){ - the $scope. Dis =function(){ + $scope. nd =true; A } the + $scope. Hide =function(){ - $scope. NS =true; $ } $ - }); -</script> the
Angularjs--dom