This commit is contained in:
Rex YE 2016-11-28 13:47:14 +00:00
parent 55c14576be
commit 2b5da24d94
1 changed files with 1 additions and 1 deletions

View File

@ -2180,7 +2180,7 @@ block dart-no-truthy-falsey
But if the properties haven't changed — and most of the time they will not have changed — But if the properties haven't changed — and most of the time they will not have changed —
Angular can leave those DOM elements alone. The list UI will be smoother and more responsive. Angular can leave those DOM elements alone. The list UI will be smoother and more responsive.
*追踪*函数不会乐队所有 DOM 更改。 *追踪*函数不会阻止所有 DOM 更改。
如果同一个英雄的*属性*变化了Angular 就可能不得不更新DOM元素。 如果同一个英雄的*属性*变化了Angular 就可能不得不更新DOM元素。
但是如果这个属性没有变化 —— 而且大多数时候它们不会变化 —— 但是如果这个属性没有变化 —— 而且大多数时候它们不会变化 ——
Angular 就能留下这些 DOM 元素。列表界面就会更加平滑,提供更好的响应。 Angular 就能留下这些 DOM 元素。列表界面就会更加平滑,提供更好的响应。