【发布时间】:2015-05-09 13:22:57
【问题描述】:
我有一个简单的表单,当我输入输入时,我会看到更改。
但是当我通过 JS 动态执行时,绑定并没有改变:
<div ng-app>
type here and see how the binding changes:
<input type="text" id="test" ng-model="name" />
<br /><br />
Changes and binding <span style='color:red'>{{name}}</span><Br /><Br />
<button onclick="document.getElementById('test').value = 'blaaaa'">Click and see how the binding is not changing</button>
</div>
【问题讨论】:
标签: javascript jquery angularjs binding