課程
/前端開發(fā)
/Vue.js
/3小時(shí)速成 Vue2.x 核心技術(shù)
http://localhost:8080/add 我刷不出來,有其他的源代碼嗎?還有標(biāo)題和文章怎么分離的。
2019-11-02
源自:3小時(shí)速成 Vue2.x 核心技術(shù) 4-4
正在回答
源代碼,在課程的問答區(qū)還有評(píng)論區(qū)已經(jīng)回復(fù)過多次了。
自己可以借助vue devtools時(shí)遷調(diào)試一下~~~哦。
weixin_慕瓜6294518 提問者
Brian 回復(fù) weixin_慕瓜6294518 提問者
import?Vue?from?'vue' import?VueRouter?from?'vue-router' import?Login?from?"../views/Login"; import?Home?from?"../views/Home"; import?Add?from?"../views/Add"; Vue.use(VueRouter) const?routes?=?[ ????{ ????????path:?'/', ????????name:?'login', ????????component:?Login ????},?{ ????????path:?'/home', ????????name:?'home', ????????component:?Home, ????????children:?[ ????????????{ ????????????????path:?'list', ????????????????name:?'list', ????????????????component:?()?=>?import(/*?webpackChunkName:?"about"?*/?'../views/List.vue') ????????????},?{ ????????????????path:?'user', ????????????????name:?'user', ????????????????component:?()?=>?import(/*?webpackChunkName:?"user"?*/?'../views/User.vue') ????????????} ????????] ????},?{ ????????path:?'/add', ????????name:?'add', ????????component:?Add ????} ????//?{ ????//???path:?'/about', ????//???name:?'About', ????//???//?route?level?code-splitting ????//???//?this?generates?a?separate?chunk?(about.[hash].js)?for?this?route ????//???//?which?is?lazy-loaded?when?the?route?is?visited. ????//component:?()?=>?import(/*?webpackChunkName:?"list"?*/?'../views/About.vue') ????//?} ] const?router?=?new?VueRouter({ ????mode:?'history', ????base:?process.env.BASE_URL, ????routes }) export?default?router
gxa714
舉報(bào)
帶你快速學(xué)習(xí)最流行的前端框架vue2.x的核心技術(shù)
2 回答為什么我的List.vue頁面獲取不到Add.vue添加的數(shù)據(jù)呢?
3 回答為什么我創(chuàng)建之后打開Login頁面總是:http://localhost:8080/#/,視頻例子打開就是http://localhost:8080
1 回答那個(gè)add什么時(shí)候添加到router.js里面了?
4 回答訪問localhost:8080/home/list 無輸出
1 回答4-4章,運(yùn)行add組件添加信息到lists 有無限層級(jí)是怎么回事老師幫忙看看吧
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2019-11-02
源代碼,在課程的問答區(qū)還有評(píng)論區(qū)已經(jīng)回復(fù)過多次了。
自己可以借助vue devtools時(shí)遷調(diào)試一下~~~哦。
2020-06-23