issues
search
switer
/
switer.github.io
Personal homepage
https://switer.github.io
5
stars
0
forks
source link
Ractive与Vue的比较
#5
Open
switer
opened
10 years ago
switer
commented
10 years ago
vue 2 ractive
vue更轻巧(vue是ractive的简化版,ractive将directive定义为decorator,filter定义为adaptor,或比filter更强大,它的使用方式不知为在view上声明式处理数据,类似filter+computed,vue只跑在支持ES5的浏览器,并没有兼容旧浏览器)
ractive 2 vue
模板语法更丰富(like mustache,但是vue使用了directive来实现模板语法,如:v-repeat,v-if)
兼容不支持ES5的浏览器
VM处理消息(使用promise提供同步/异步回调的处理,sometime,复杂场景下,我们需要知道VM是什么时候完成数据渲染/处理)
vue 2 ractive
ractive 2 vue