技术控

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

[其他] Virtual dom it sucks

[复制链接]
精神病院VIP病人 发表于 2016-9-30 10:45:54
140 3

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

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

x
vomit

     v

      irtual d     om it      sucks      
Virtual dom it sucks-1 (expression,themselves,substitute,function,rainbow)

  Intro

  Vomit is a simple function call that allows you to quickly build components that update themselves.
  [code]var name = 'Nyan'
var rainbow = ['red', 'orange', 'yellow', 'green', 'blue', 'purple']

var el = vomit`

  

${name} the cat!


  

        ${rainbow.map(color => vomit`
  • ${color}
  • `)}
      

`[/code]   Vomit does not force you into any syntax/API but instead uses the power of JavaScript template literals built in your browser. String substitution (expression between ${} ) presents many benefits and Vomit makes it even better allowing you to substitute Objects, Arrays, DOM Elements, Functions, Promises and even Streams .
  Other features are:
  
       
  • Component oriented development using DOM diffing based on real DOM (not virtual DOM)   
  • Separate and optimize rendering of static and dynamic content   
  • HTML5 Web Component   
  • Works server side   
  • Works with SVG   
  • 2kb minified + gzipped, ideal for mobile and to include as dependency   
  • share the same core engine than the MVVM librarybrick  
   You'll find Vomit disgustingly easy to learn. Please check outlive examples anddocs.
  Question

   For questions and feedback please use the Gitter chat room . For support, bug reports and or feature requests please use the issue list of this repo and make sure it's not present yet in ourreporting checklist.
  Contribution

   Vomit is an open source project and would not exist without its community. If you want to participate please make sure to read the contributing guide before making a pull request. If you have any vomit-related project, component or other let everyone know on ourchat room or in ourwiki.
  License

Virtual dom it sucks-2 (expression,themselves,substitute,function,rainbow)

  The MIT License (MIT)
  Copyright (c) 2016 Olivier Wietrich
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
友荐云推荐




上一篇:数百个 HTML5 例子学习 HT 图形组件 – 3D 建模篇
下一篇:SQL Server Reporting Services Column Level Security
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

营养过剩不在胸 发表于 2016-9-30 12:04:31
比我有才的都没我帅,比我帅的都没我有才!  
回复 支持 反对

使用道具 举报

tywgv9trsf 发表于 2016-9-30 16:48:12
前排支持下
回复 支持 反对

使用道具 举报

KamorkisEl 发表于 2016-10-2 00:52:00
呵呵,低调,低调!
回复 支持 反对

使用道具 举报

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

本版积分规则

我要投稿

推荐阅读

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

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

返回顶部 返回列表