09 2021 档案

摘要:route.js // 该文件专门用于创建整个应用的路由器 import VueRouter from 'vue-router' //引入组件 import About from '../pages/About' import Home from '../pages/Home' import New 阅读全文
posted @ 2021-09-22 19:52 幻影之舞 阅读(208) 评论(0) 推荐(0) 编辑
摘要:message组件: <div> <ul> <li v-for="m in messageList" :key="m.id"> <router-link :to="{ name:'xiangqing', params:{ id:m.id, title:m.title } }"> {{m.title} 阅读全文
posted @ 2021-09-22 19:27 幻影之舞 阅读(248) 评论(0) 推荐(0) 编辑
摘要:效果图 安装axios npm i axios search组件: <template> <div class="search"> <section class="jumbotron"> <h3 class="jumbotron-heading">Search Github Users</h3> < 阅读全文
posted @ 2021-09-21 18:05 幻影之舞 阅读(49) 评论(0) 推荐(0) 编辑
摘要:安装全局事件总线: main.js: new Vue({ el:'#app', render: h => h(App), beforeCreate(){ Vue.prototype.$bus = this//安装全局事件总线 } }) 传值组件中 methods:{ sendName(){ this 阅读全文
posted @ 2021-09-21 17:54 幻影之舞 阅读(106) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示