摘要: Vue不能检测数组和对象的变化 对于对象 vue无法检测property的添加和移除 由于Vue会在初始化实例时对property执行getter和setter 所以property必须在data对象上存在才能让VUe将它转化下响应式 对于已经创建的实例,Vue 不允许动态添加根级别的响应式 pro 阅读全文
posted @ 2022-05-01 10:35 HaoyuSun 阅读(50) 评论(0) 推荐(0)
摘要: 1.Vue.extend 使用基础Vue构造器,创建子类 div #mount-point //data必须是函数 var peofile = Vue.extend({ template:’‘ data:function() {} }) //创建Profile实例,挂在到元素上 new Profil 阅读全文
posted @ 2022-05-01 09:48 HaoyuSun 阅读(104) 评论(0) 推荐(0)