摘要: 1.API中的数据(data、prop、propData、method、watch)五个初始化入口是在initState模块中: export function initState (vm: Component) { vm._watchers = [] const opts = vm.$option 阅读全文
posted @ 2017-07-27 18:04 anthonyliu 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 1.v-model 针对表单控件元素创建双向数据绑定,在v-model指令后面还可以添加多个参数(number,lazy, debounce)。 <div id="example"> <form> 姓名: <input type="text" v-model="data.name" placehol 阅读全文
posted @ 2017-07-27 16:12 anthonyliu 阅读(376) 评论(0) 推荐(0) 编辑