Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Vssue]vue-router #28

Open
shenghy opened this issue Apr 19, 2019 · 12 comments
Open

[Vssue]vue-router #28

shenghy opened this issue Apr 19, 2019 · 12 comments

Comments

@shenghy
Copy link
Owner

shenghy commented Apr 19, 2019

https://jspang.com/posts/2017/04/13/vue-router.html

@ghost
Copy link

ghost commented May 30, 2019

感谢分享,获益匪浅

@shikejia008522
Copy link

谢谢分享,受益良多

@xu-Aurora
Copy link

vue的引入组件,通过@引入是啥意思?一般不都是通过‘././’这样的相对路径来引入的吗?

@mukiwu
Copy link

mukiwu commented Jun 13, 2019

老師您好,請問編程式的 $router 有可以跳轉到外部連結的語法嗎?謝謝

@fengnzl
Copy link

fengnzl commented Jun 18, 2019

@xuxucong

vue的引入组件,通过@引入是啥意思?一般不都是通过‘././’这样的相对路径来引入的吗?

@是build/webpack.base.config.js中resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
'vue$': 'vue/dist/vue.esm.js',
'@': resolve('src'),
}
},里面设置的别名,你可以仔细看看

@gaoyueban
Copy link

感谢分享,

@yezi1
Copy link

yezi1 commented Aug 18, 2019

@xuxucong

vue的引入组件,通过@引入是啥意思?一般不都是通过‘././’这样的相对路径来引入的吗?

这是别名蛤~ 你可以查看build文件夹下面的webpack.base.conf.js文件中resolve的配置项alias就可以看见了

@yezi1
Copy link

yezi1 commented Aug 18, 2019

@mukiwu

老師您好,請問編程式的 $router 有可以跳轉到外部連結的語法嗎?謝謝

$router是属于操作vue-router的路由,好像是没有外部连接的方法的,可以直接用A标签或者JS跳转撒~生成页面后返回的也是当前单页面的index.html也会存在返回机制的

@poemZest
Copy link

请问以下,某个页面是不是也可以有多个子路由呢?如果可以,那么应该怎么配置呢??????

@gaoyueban
Copy link

请问以下,某个页面是不是也可以有多个子路由呢?如果可以,那么应该怎么配置呢???????
这个视频有讲解的在第4节
#28 (comment)

@poemZest
Copy link

请问以下,某个页面是不是也可以有多个子路由呢?如果可以,那么应该怎么配置呢???????
这个视频有讲解的在第4节
#28 (comment)

感谢你的意见。 我已经很好的解决了这个问题,并且有了更加深刻的理解

@183461cjh
Copy link

感谢分享,获益匪浅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants