摘要:
每个对象都有一个__proto__属性,并且指向它的prototype原型对象 每个构造函数都有一个prototype原型对象 prototype原型对象里的constructor指向构造函数本身 示例1 class Person { constructor(options) { this.name 阅读全文
posted @ 2021-09-24 19:50
阿兰儿
阅读(96)
评论(0)
推荐(0)
摘要:
Vue Vue中最重要的就是数据驱动和组件化,每个组件都有自己的data,template,methods。 Vuex 进行状态管理,负责组件中的通信。 多个视图依赖同一状态; 来自不同视图的行为需要变更同一状态; Vue的插件; 插件一般用来给Vue添加全局功能。 使用插件 Vue.use(myP 阅读全文
posted @ 2021-09-24 19:48
阿兰儿
阅读(85)
评论(0)
推荐(0)
浙公网安备 33010602011771号