摘要:
刚刚看见一篇文章讲述track by的功能的,大致记录如下: 1. ng-repeat="friend in friends" 一般不使用track by的情况下,每次刷新DOM,ngRepeat都会删除原有的元素DOM重新生成DOM结构。 2.ng-repeat="friend in friend 阅读全文
摘要:
ngModelCtrl.$render用来渲染$viewValue值到UI界面中 Updating $viewValue when the UI changes: 整个流程如图: 阅读全文
摘要:
Formatters Definition Array of functions to execute, as a pipeline, whenever the model value changes. Each function is called, in turn, passing the va 阅读全文
摘要:
在type="password"之前加一行<input type="password" name="old_password" style="display: none">;name属性是一定要加的,并且要和显示的密码框一样! 示例如下: 阅读全文