12 2021 档案
摘要:在router index 下进行引入 Vue.use(VueRouter) const routes = [ { path: '/login', name: '登录', component: Login }, ] const router = new VueRouter({ routes, });
阅读全文
摘要:$parent 官方介绍:当前组件树的根 Vue 实例。如果当前实例没有父实例,此实例将会是其自己。意思是如果当前组件没有父组件,用这个方法可以调用自己的所有方法,若有父组件也可调用父组件任意方法使用方式:this.$parent.方法(可以是父级的)可以在你任何需要的地方调用如子组件提交接口之后
阅读全文
浙公网安备 33010602011771号