摘要:
1、什么是vuex vuex是项目里面的状态管理器,统一管理和维护各个组件的可变化状态,vue的应用核心是store,vue有五个核心概念,state, getters, mutations, actions, modules。 2、对vuex的简单理解 每一个 Vuex 应用的核心就是 store 阅读全文
posted @ 2021-09-17 11:42
qtyzsl
阅读(272)
评论(0)
推荐(0)
摘要:
1、基础数组类型,复合数据类型 2、直接传递一组件 3、可以通过函数接受Html一个片段 4、props.children 5、callback 子传父 阅读全文
posted @ 2021-09-17 11:31
qtyzsl
阅读(90)
评论(0)
推荐(0)
摘要:
this 指向问题 1)、箭头函数 hdTip=()=>{} 调用:onClick={this.hdTip} 2、在constructor 邦定实例,this.hdTip = this.hdTip.bind(this); 调用:onClick={this.hdTip} 3、事件触发时增加bind 但 阅读全文
posted @ 2021-09-17 11:29
qtyzsl
阅读(37)
评论(0)
推荐(0)

浙公网安备 33010602011771号