angular2的高级开发最新分析和总结.pptx

angular2的高级开发汇报人简介:***科技领域专家,工程师?大纲(?一)性能优化探索(运?行行时)(?二)?工具与?工程化(静态)(三)常?见问题原因及解决?方法(?一)性能优化探索Angular响应式处理理链路路Trigger Change DetectionRootClick类深度优先ZoneTimerXHRLeaf链路路优化Change DetectionRoot ComponentLeaf ComponentEventZone.js典型例例?子:元素拖放@Component({template: `item// … (touchstart)=“touchstart($event)” (touchmove)=“touchmove($event)” (touchend)=“touchend($event)”/item`})export class BoxComponent { constructor() { } touchstart(event: any) {// 记录原始位置}touchmove(event: any) {// 更更新模型数据}touchend(event: any) {}}红?米Note 4X模拟500个组件 * 4个binding每次`touchmove`事件都触发变化检测执?行行,耗时约 15-20msZoneClickChange Detecti

文档评论(0)

1亿VIP精品文档

相关文档