vue
复习 """ 1、vue-router插件 路由跳转: <router-link to="/path"></router-link> <router-link :to="{name: 'path'}"></router-link> this.$router.push('/path') this.$router.push({name: 'path'}) this.$router.go(-1) this.$router.go(1) 路由传参: 配置:path: '/path/:pk' => 请求:`/path/${pk}` => 取值:this.$route.params.pk 配置:path: '/path', name='path' => 请求:{name:'path', query={pk:值}} => 取值:this.$route.query.pk 2、vuex插件 完成任意组件间的数据交互(当页面刷新重新加载,仓库中的数据会重置) store.js配置: state: {num:0} 取值:this.$store.state.num 赋值:this.$store.state.num = 10 3、vue-cookies插件 下载 => 配置 => 使用 下载: cnpm install vue-cookies 配置main.js: import cookies from