Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wanganxp committed Aug 13, 2019
1 parent 6bfcf37 commit 33461f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,13 @@

- 问:多端是不是一种妥协,是否会造成性能下降?
- 答:这个问题很常见。多端且不影响性能,确实很难,但uni-app做到了。

在h5端,它的性能、包体积与直接使用vue.js开发一致;

在小程序端,它的性能比大多数开发框架更好,uni-app底层自动处理的setdata差量同步机制,比开发者手动写setdata更好,就像使用vue.js更新界面比手动写js修改dom更高效一样;

在App,uni-app支持webview渲染和原生渲染双引擎,启用原生渲染时,css写法受限,但性能是很接近原生开发的效果的,在当前的手机环境下,千万日活以下的应用整体使用uni-app也不会遇到任何压力。当然也可以在已经做好的原生App中将部分页面改为uni-app实现。

另外我们会把很多跨端处理放在编译期完成的,避免影响运行期的效率。


Expand Down

0 comments on commit 33461f8

Please sign in to comment.