技术控

    今日:56| 主题:49157
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] Vue 2.0 is here

[复制链接]
梦奎孤人 发表于 2016-10-1 02:55:09
72 1

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
What’s New in 2.0

  Performance

         
Vue 2.0 is here-1 (determine,precisely,addition,provides,because)
          Based on    3rd party benchmark , lower is better        The rendering layer has been rewritten using a light-weight Virtual DOM implementation forked from snabbdom . On top of that, Vue’s template compiler is able to apply some smart optimizations during compilation, such as analyzing and hoisting static sub trees to avoid unnecessary diffing on re-render. The new rendering layer provides significant performance improvements compared to v1, and makes Vue 2.0 one of the fastest frameworks out there. In addition, it requires minimal effort in terms of optimization because Vue’s reactivity system is able to precisely determine components that need to be re-rendered in a large and complex component tree.

Vue 2.0 is here-2 (determine,precisely,addition,provides,because)
        It’s also worth mentioning that the 2.0 runtime-only build weighs at only 16kb min+gzipped, and totals at 26kb even with vue-router and vuex included, on par with the v1 core alone!
  Render Functions

   Despite the rendering layer overhaul, Vue 2.0 maintains a largely 1.0 compatible template syntax with only minor deprecations. The templates are compiled into Virtual DOM render functions under the hood, but the user can also opt to directly author render functions themselves when they need the flexibility of JavaScript. There is also optional JSX support for those who prefer it.
  Render functions open up possibilities for powerful component-based patterns — for example, the new transition system is now completely component-based, using render functions internally.
  Server-Side Rendering

   Vue 2.0 supports server-side rendering (SSR) with streaming and component-level caching , making it possible to achieve blazing fast renders. In addition, vue-router and vuex 2.0  are designed to support SSR with universal routing and client-side state hydration. See it all working together in the vue-hackernews-2.0 demo app .
  Supporting Libraries

   The official supporting libraries and tools — vue-router , vuex , vue-loader and vueify — have all been updated to support 2.0.  vue-cli now scaffolds 2.0-based projects by default.  
   In particular, vue-router and vuex have both received many improvements in their 2.0 versions:
  vue-router

  
       
  • Multiple named support   
  • Improved navigation with the component   
  • Simplified navigation hooks API   
  • Customizable scroll behavior control   
  • More comprehensive examples  
  vuex

  
       
  • Simplified in-component usage   
  • Better code organization with improved modules API   
  • Composable async actions  
  See their respective 2.0 docs for more details:
  
       
  • http://router.vuejs.org/   
  • http://vuex.vuejs.org/  
   Community Projects

   The team at Ele.me , the biggest online food ordering platform in China, has already built a complete desktop UI component library with Vue 2.0. Unfortunately the docs do not have an English version yet, but they are working on it!
   Many other community projects have also updated to be 2.0 compatible — check out awesome-vue and search for “2.0” on the page.
友荐云推荐




上一篇:Audio Fingerprinting with Python and Numpy
下一篇:Open Sourcing a Deep Learning Solution for Detecting NSFW Images
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

猪链球菌 发表于 2016-10-1 17:56:23
我也是醉了
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2016 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表