摘要: 现有如下场景,点击父组件的li元素跳转到子组件中,并携带参数,便于子组件获取数据。父组件中: <li v-for="article in articles" @click="getDescribe(article.id)"> methods: 方案一: getDescribe(id) { // 直接 阅读全文
posted @ 2020-04-25 18:19 飞鸟和蝉- 阅读(1524) 评论(0) 推荐(0) 编辑