Vuejs Learning (Five) front-end routing

1.SPA: local updating by ajax, a browser that supports forward and backward
2.SPA Principle: hash URL based
3. distal route: displaying different according to a user event
4. The basic steps of
(1) introducing Router-VUE
Here Insert Picture Description(2) add the route link
Here Insert Picture Description(3) routing padding bits
Here Insert Picture Description(4) defines a routing component
Here Insert Picture Description(5) arranged to create routing rules and routing instance
Here Insert Picture Description(6) is routed to the mount Vue root example
Here Insert Picture Description5. route redirection: redirect relocation with a new page
6. fitted the routine: configured through Children
Here Insert Picture Description7. the dynamic routing
through the path after the path is added: id attribute, dynamic routing parameters, id variable
8.props parameter passing
available route transfer functions
9. named route
name
10. the navigation programming
Here Insert Picture Descriptionpush method : you can jump to other pages
go method: n is a positive, forward n the web page; n is negative, then the web page back n

Released seven original articles · won praise 0 · Views 34

Guess you like

Origin blog.csdn.net/zeshen123/article/details/103943938
Recommended