Lel*_*eus 10 performance internet-explorer-11 es6-shim ngfor angular
我正在尝试使用Angular 2,我注意到在使用*ng超过1500项时,Internet Explorer 11上的性能显着变慢.IE11大约需要25秒,而其他浏览器大约需要1秒.
暂停调试器我注意到代码不断调用es6-shim.js中的isNan函数.这里是调用堆栈:
这里有一个工作的plnkr:http://plnkr.co/edit/sEujClHmuCbrydIiYQYL?p = preview .代码很简单:
<ul *ngFor="#item of items">
<li>Item: {{item.itemKey}}</li>
</ul>
//Load items simulating remote load
setTimeout(function(){
for (let i = 0; i < 1500; i++) {
self.items.push(new Item(i+""));
}
},1000);
Run Code Online (Sandbox Code Playgroud)
有同样问题的人吗?任何改善性能的解决方法或提示?
先感谢您.
| 归档时间: |
|
| 查看次数: |
5803 次 |
| 最近记录: |