We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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
[vue] vue-router是用来做什么的?它有哪些组件?
The text was updated successfully, but these errors were encountered:
vue-router路由,通俗来讲主要是来实现页面的跳转,通过设置不同的path,向服务器发送的不同的请求,获取不同的资源。 主要组件:router-view、router-link
Sorry, something went wrong.
主要用来构建SPA单页面应用吧
vue-router路由,通俗来讲就是网址,可以进行页面跳转 组件:router-view,router-link
vue的核心概念之一:页面组件化、SPA。 由于vue是单页面应用,且每个功能模块都可以封装为组件,因此不可能和多页面应用一样直接通过超链接跳转,换句话说只有一个html,还能跳转到哪儿去?那如何让vue可以在一个页面中如何切换不同的组件? 这也是vue-router要解决的根本目的:让SPA像多页面应用一样实现跳转。
No branches or pull requests
[vue] vue-router是用来做什么的?它有哪些组件?
The text was updated successfully, but these errors were encountered: