AngularJS? ?????? ??? ???? HTML? ?????.
AngularJS? ??? ???? ?? ??????? ??? ?????.
AngularJS? ???? ???? ????? ? ????.
AngularJS ??? ???
AngularJS ???? ng- ???? ?? ??? HTML ?????.
ng-app ???? AngularJS ??????? ??????.
ng-init ???? ?????? ???? ??????.
ng-model ???? ?? ?(?: ?? ?? ?)? ??????? ??????.
AngularJS ??? ?
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="https://cdn.bootcss.com/angular.js/1.4.6/angular.min.js"></script> </head> <body> <div ng-app="" ng-init="firstName='John'"> <p>在輸入框中嘗試輸入:</p> <p>姓名: <input type="text" ng-model="firstName"></p> <p>你輸入的為: {{ firstName }}</p> </div> </body> </html>
???? ?? ?
??? ????? ??? "???? ??" ??? ?????