摘要: 1.过滤器 全局: Vue.filter('过滤器名称',function(参数){}) 私有: filter: { 过滤器名称: function (参数) { } } 调用过滤器: {{参数|过滤器名称}} 注: 1. 当私有和全局两个名称相同的过滤器时,进行就近原则进行调用。 2. 一个表达式 阅读全文
posted @ 2020-12-09 18:29 三水儿 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 路由跳转方式:this.$router.push 路由传参方式:this.$route.query 页面1 <template> <div> <Button type="Primary" @click="() => {this.$router.push({path: '/demo',query: { 阅读全文
posted @ 2020-12-09 15:46 三水儿 阅读(503) 评论(0) 推荐(0) 编辑