vue
2017-04-18 16:34:32 0 举报
Vue.js是一款用于构建用户界面的渐进式JavaScript框架。与其他大型框架不同的是,Vue被设计为可以自底向上逐层应用。Vue的核心库只关注视图层,不仅易于上手,还便于与第三方库或既有项目整合。另一方面,当与现代化的工具链以及各种支持类库结合使用时,Vue也完全能够为复杂的单页应用提供驱动。 Vue.js是一个开源项目,其源代码托管在GitHub上。它遵循MIT License协议,允许自由地使用和修改代码。
作者其他创作
大纲/内容
No
when vm.$mount(el) is called
created
Mounted
Yes
updated
beforeCreate
beforeMount
mounted
Has \"el\" option?
Init Events
new Vue()
Destroyed
Compile el's outerHTML as template
destory
when data changes
beforeDestory
Virtual DOMre-renderand patch
befoureUpdate
Has \"template\" option?
Compile template into render function
whenvm.$destory()is called
Observe Date
Create vm.$el and replace \"el\" with it
0 条评论
下一页