Home
Sign Up
Sign In
V2EX
›
问与答
vue 同一页面跳转怎么获取参数?
coolair
·
Jan 18, 2021
· 788 views
This topic created in 1969 days ago, the information mentioned may be changed or developed.
在
http://localhost/#/test
页面有个链接:
http://localhost/#/test?q=123
点击后怎么获取 q 的值? mounted 里不行,因为已经 mounted 了。
mounted
Vue
页面
获取
1 replies
•
2021-01-18 11:09:53 +08:00
1
clf
Jan 18, 2021
watch 监听$route()就行了。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
3243 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 36ms ·
UTC 11:15
·
PVG 19:15
·
LAX 04:15
·
JFK 07:15
♥ Do have faith in what you're doing.
❯