Skip to content

Commit

Permalink
Update performance.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wanganxp committed Aug 15, 2019
1 parent b5d3c8e commit de0f75f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* 减少 scroll-view 组件的 scroll 事件监听,当监听 scroll-view 的滚动事件时,视图层会频繁的向逻辑层发送数据;
* 监听 scroll-view 组件的滚动事件时,不要实时的改变 scroll-top/scroll-left 属性,因为监听滚动时,视图层向逻辑层通讯,改变 scroll-top/scroll-left 时,逻辑层又向视图层通讯,这样就可能造成通讯卡顿。
* 注意 onPageScroll 的使用,onPageScroll 进行监听时,视图层会频繁的向逻辑层发送数据;
* 多使用css动画,而不是通过js的定时器操作界面做动画

**优化页面切换动画**

Expand Down

0 comments on commit de0f75f

Please sign in to comment.