技术控

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

[其他] Vue 2.0 is Here! The Progressive JavaScript Framework

[复制链接]
你会发光但我怕烫 发表于 2016-10-5 17:12:37
187 8

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

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

x
After six months of intense development, eight alphas, eight betas and eight release candidates, Vue 2.0, “The Progressive JavaScript Framework” is finally out. Being the 26th most popular JavaScript project on Github and one of the fastest growing libraries on the list (an excellent result for a project initiated less than a year ago), the new release is something to get excited about.
   
Vue 2.0 is Here! The Progressive JavaScript Framework-1 (framework,confusion,something,features,elements)

   Initially met with skepticism as another JavaScript framework, Vue evolved into a fully-fledged, yet agile, JavaScript framework. At its inception, many developers considered Vue to be a lighter version of Angular. While some fundamental similarities exist (e.g. v-if vs. ng-if), the team behind Vue chose to import already working features and supplement and optimize them with improved functional elements. For example, compared to Angular 1, Vue has a distinct separation between directives and components, avoiding the typical confusion specific to Angular 1. Another example can be the way Vue enforces the data flow between components. Unlike Angular, which uses a two-way binding between scopes, Vue adopts a one-way data flow between elements, which is a significant advantage for the developer looking for a nimble app. In fact, Vue focuses on flexibility and simplicity where Angular adopts rigidity and strictness.
   What about Angular 2? The seasoned developer will also notice that some Angular 2 features are strikingly similar to Vue. And while Angular 2’s performance is impressive and on par with Vue, one should notice that a full-featured Vue 2.0 with compiler included weighs 23kb and is still lighter than the bare-bones version of Angular 2 (50kb).  Furthermore, Angular 2 is developed with focus on large enterprise applications. Vue is also well-suited to enterprise environments, but it is also friendly in less demanding environments.
  So, what’s new in Vue 2.0?
   The code is entirely rewritten to enhance Vue’s scalability and modularity. The new rendering layer is based on a virtualized DOM implementation which offers significant improvements in rendering speed and memory consumption. And while usually virtual-DOM implementations suffer from performance issues like re-rendering, thanks to its reactive capabilities, Vue manages to limit the impact of this bottleneck. The Holy Grail of javascripting, server-side rendering, is supported in Vue with streaming and component-level caching .
   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, according to Evan You via medium.com.

Vue 2.0 is Here! The Progressive JavaScript Framework-2 (framework,confusion,something,features,elements)

   In a UI rendering scenario, where manipulating the DOM is the most resource intensive operation Vue.js will offer a 20 to 50 percent performance boost , because of the way Vue deals with overheads on DOM manipulations. In fact, an unoptimized, out-of-the-box Vue is faster than a fully-optimized React implementation. A more detailed description of the Vue.js performance compared to React.js can be found here .
   Another optimization is the filter system which was adjusted to favor scalability. Vue ships to developers without any built-in filters, however, filters can still be used inside text inside text interpolations ({{}} tags). Developers can invoke standalone libraries such as moment.js or accounting js for formatting dates and subsequently currencies. The filter syntax also receives a make-up bring it in line with JavaScript’s {{ date | formatDate(‘YY-MM-DD’) }} function invocation.
12下一页
友荐云推荐




上一篇:Epoch 知多少
下一篇:A Technical Follow-Up: How We Built the World's Prettiest Auto-Generated Tr
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

烟涵 发表于 2016-10-5 18:08:38
在街上看美女,高一点就是欣赏;低一点就是流氓。
回复 支持 反对

使用道具 举报

刘旻芯 发表于 2016-10-5 18:35:28
传说中的沙发???哇卡卡
回复 支持 反对

使用道具 举报

枫林﹌晚霞 发表于 2016-11-2 10:57:18
只吃楼主,撸过过经验,小伙伴们都惊呆了
回复 支持 反对

使用道具 举报

邓川 发表于 2016-11-11 12:11:48
你会发光但我怕烫加油,看好你哦!
回复 支持 反对

使用道具 举报

pjiv1998 发表于 2016-11-12 14:54:39
睡眠是一门艺术――谁也无法阻挡我追求艺术的脚步!  
回复 支持 反对

使用道具 举报

liluo1991 发表于 2016-11-15 13:06:49
我可以轻视你,鄙视你,小看你,不看你.
回复 支持 反对

使用道具 举报

刘雅霜 发表于 2016-11-18 06:58:19
精神病院在通缉楼下的!
回复 支持 反对

使用道具 举报

jie-2015 发表于 2016-11-21 19:42:42
支持你哈...................................
回复 支持 反对

使用道具 举报

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

本版积分规则

我要投稿

推荐阅读

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

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

返回顶部 返回列表