GithubHelp home page GithubHelp logo

cnsuhao / avalon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rubylouvre/avalon

0.0 0.0 0.0 79.76 MB

an elegant efficient express mvvm framework

Home Page: http://avalonjs.coding.me/

License: Other

JavaScript 87.31% HTML 12.47% CSS 0.22%

avalon's Introduction

#avalon 2

avalon2是基于虚拟DOM的超高性能MVVM框架,兼容到IE6.(QQ学习群 453286795 314247255)

##artcher.js

位于 dist 目录下, 只有不到2000行, 现只支持IE9+ ,它是avalon2的浓缩版

###avalon电子文档

这是基于官网制成的电子书,方便大家离线阅览

###avalon2官网

这是基于gitbook制作的,对移动端支持很好,大家上班或睡觉时,可以过目一下.

npm install avalon2

###谁在用avalon

欢迎大家提交logo与官网链接

###超高性能

测试页面 perf目录下的index.html, index1.4.html, index-ng.html, index-vue.html,index-react.html

亮点,如果页面上存在一个大表格或列表,其他框架会在浏览器加载页面时会卡一下(白屏), 而avalon则平缓多了

thanks http://charts.udpwork.com/

###支持后端渲染

avalon2.1.5起支持后端渲染,详见这里

avalon2 学习教程(包括组件)

HTML指南

属性值必须用双引号括起,标签名必须小写, 标签必须被关闭(正常关闭,或自关闭)

组件, 在兼容IE6-8的情况下,组件必须用wbr, xmp做容器

组件名如果不充当标签名,可以不以ms-开头.

绑定属性建议使用短指令方式定义,即ms-if可以改成:if

ms-duplex指令除了change, rebounce过滤器外,不建议使用其他过滤器做格式化, 建议添加ms-input, ms-change在里面处理

ms-duplex不支持对简单数组的元素的处理, 即vm.arr = [1,2,4], <input :for="el in @arr" duplex="el"

ms-important与ms-controller对应的vm.$id一个页面上只能用一次,不能存在多个同名的ms-controller. ms-important由于不继承上级的$element与$render,每次只更新它所在的区域,善用它能大大提高性能

   <div ms-controller='test'>{{@aaa}}</div>
   <div ms-controller='test'>{{@bbb}}<!--test已经使用了1次!会导致程序出错--></div>
   <div ms-important='test'>{{@bbb}}<!--test已经使用了2次!会导致程序出错--></div>

avalon's People

Contributors

554943871 avatar aimwhy avatar ascoders avatar bigqiang avatar csbun avatar dengzhizhi avatar dsonet avatar edwonlim avatar ghzofhit avatar graybobo avatar ilife5 avatar imeditron avatar jsaaron avatar jsonsong89 avatar lihuanghe avatar lizhengqiang avatar michaeljayt avatar nagasun avatar pinghe avatar qiangtou avatar rehiy avatar rockyzh avatar rubylouvre avatar shirlyfe avatar tubo70 avatar vincentlws avatar web3d avatar yanxyz avatar zhiyan avatar zspcn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.