摘要:
1.过滤器 全局: Vue.filter('过滤器名称',function(参数){}) 私有: filter: { 过滤器名称: function (参数) { } } 调用过滤器: {{参数|过滤器名称}} 注: 1. 当私有和全局两个名称相同的过滤器时,进行就近原则进行调用。 2. 一个表达式 阅读全文
摘要:
路由跳转方式:this.$router.push 路由传参方式:this.$route.query 页面1 <template> <div> <Button type="Primary" @click="() => {this.$router.push({path: '/demo',query: { 阅读全文