vue.js routing is invalid and cannot be used

php中世界最好的语言
Release: 2018-05-10 13:42:30
Original
2141 people have browsed it

This time I will bring you vue.js routing failure and cannot be used. What are the precautions to solve the problem of vue.js routing failure and failure. The following is a practical case, let's take a look.

I have newly learned the routing in vue.js and added a simple routing example (from vue-router 2) to the vue demo I wrote before, but after adding the click only The address bar changes, but the content does not change. And some effects written before with jquery also fail. Finally, the reason was found because the same ID was launched twice (the first time was launched when using the vue component before, and the other one was Started during routing)

Attached is part of the code

      

基本资料 培养信息 考核相关 清算

基本信息 修改密码 会员信息 小组信息

Copy after login

I believe you have mastered the method after reading the case in this article. Please pay attention for more exciting things. Other related articles on php Chinese website!

Recommended reading:

Detailed explanation of the use of JS prototype and prototype chain

Detailed explanation of the use of Angular CLI to generate Angular 5 projects

The above is the detailed content of vue.js routing is invalid and cannot be used. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!