-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vuejs #34
Comments
vue : n, 视图,意见,看法. |
模板 mustache binding V.S 指令directive Ractive 是只有模板, 没有directive, 模板里都是mustache binding, 而vue支持directive指令, 这意味着 |
指令 directivehttp://vuejs.org/api/directives.html v-
|
Ractive v.s VueVue的star 数量已经9K了, 升的好快~ 单向绑定, 即 数据 -> DOM
双向绑定
但是
Note:
模板差不多的部分
Vue便利部分
` // Vue
new Vue({
data: { /* data */ },
computed: {/* computed */},
methods: { /* 一些方法 */ }
});
v-on:click="m1"
v-on:click="m2($event)"
m1 / m2 都只需定义在 methods 即可 Ractive.js Vue支持 filter |
使用 array 该写dolphin里的筛选器之后, 可以使用, 但是 array 使用起来真没一个 object 方便
_lodash .remove 与 Vue 不兼容, 使用 Array.prototype.splice 即可 |
All on vue.js
学习方式为 vue v.s Ractive.js
学习内容
The text was updated successfully, but these errors were encountered: