javascript - Can vue get the name of the previous page to jump to?
PHP中文网
PHP中文网 2017-05-19 10:23:35
0
1
441

There is a page in the project that is reused for three pages. The content and click events of different pages are different. I want to determine what content is displayed by getting the name of the routed page, and add the corresponding click event.

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
过去多啦不再A梦

vue-router has a navigation hook from which is a routing object. Just get it from it

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!