AngularJS 教程
AngularJS 參考手冊(cè)
綁定輸入框的值到 scope 變量中:
ng-model 指令綁定了 HTML 表單元素到 scope 變量中。
如果 scope 中不存在變量, 將會(huì)創(chuàng)建它。
<input>, <select>, <textarea>, 元素支持該指令。