摘要:
主要差异是在script里 <script lang="ts"> import {Vue, Component,Prop,Emit,Watch,Modal...} from 'vue-property-decorator'; //按需引入所需的 @Component({}) export defau 阅读全文
posted @ 2020-06-30 11:03
Jennyishere
阅读(344)
评论(0)
推荐(0)
摘要:
直接上代码 this.totalScore = arr.reduce( (prev, cur) => { return cur.score + prev; }, 0 ); 阅读全文
posted @ 2020-06-30 10:04
Jennyishere
阅读(231)
评论(0)
推荐(1)
摘要:
首先 定义路由,添加参数 {name: 'preview', path: 'preview/:id', //参数 component: () => import( '@/ ' ) } 传参时使用name和params this.$router.push({ name: 'preview', para 阅读全文
posted @ 2020-06-30 10:00
Jennyishere
阅读(1911)
评论(1)
推荐(1)