-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
怎么给 URL 加参数 #197
Comments
照目前 但我可能没法改成链接,因为如果改成链接,就变成了嵌套链接了。 <a href="这里链接到详情页">
<a href="">点击打开用户信息页,不是详情页</a>
...
</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我的页面结构大概是这样
列表页里的链接 点击事件大概是这样处理的。
于是浏览器里的链接变成这样了:
http://127.0.0.1:8080/#&pageShow
但是这样的链接没法分享,因为没有帖子 ID,
怎样才能切换到
#pageShow
且浏览器里的链接变成这样:http://127.0.0.1:8080/#&pageShow?id=123
这样的话用户分享出去,别的用户点进来,
我就可以判断 id 与 localStorage 是否一致,
不一致的话再用 id 调用 API 获取数据。
The text was updated successfully, but these errors were encountered: