javascript - Can the vue popup layer be implemented using routing?
黄舟
黄舟 2017-05-19 10:37:58
0
1
701

I have a page 1. Clicking a button on page 1 pops up a new page 2. Clicking a button on the new page 2 pops up a new page 3. I wrote these three pages into a vue In the file, it is still implemented using routing. If it is implemented using routing, how to implement it?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
淡淡烟草味

Method 1, for example

/a
/b
/c

For these three routes, you can bind your .vue的组件页面,然后在这个组件页面里面,通过路由对象下面的路由对象的path或者nameattribute to all three routes to determine the processing and display of different pages 123.

Method 2: You can also use a route, for example /a?type=1, this one has a different type. You can display different pages by judging the query of the routing object. 123

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template