摘要: 划重点: $emit 绑定一个自定义事件event,当这个这个语句被执行到的时候,就会将参数arg传递给父组件,父组件通过@event监听并接收参数。 子组件: 1 <template> 2 <div> 3 <!-- <div>子页面</div> --> 4 <div class="mess"> 5 阅读全文
posted @ 2021-07-12 11:49 _小狐狸 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 父组件: 1 <template> 2 <div class="comment"> 3 <div>comment</div> 4 <div class="btn"> 5 <router-link :to='{name:"shopping", query: { id: userID}}' @click 阅读全文
posted @ 2021-07-12 11:43 _小狐狸 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 参考地址: https://blog.csdn.net/feinifi/article/details/104578546 画重点: // 需要带上参数--offline表示离线初始化。 --offline vue init webpack demo --offline 问题 : 解决:下载weba 阅读全文
posted @ 2021-07-12 11:33 _小狐狸 阅读(573) 评论(0) 推荐(0) 编辑