Say I have an anchor somewhere on a different page:
假设我在不同的页面上有一个锚点:
<A NAME="blah">
On the page I'm currently on, I want to go that that anchor on that different page while also passing a GET parameter, such as, for example:
在我当前正在访问的页面上,我想在该页面上传递一个GET参数,例如:
<A HREF="otherpage.htm#blah?data=1234">Good Stuff!</A>
This doesn't seem to be working for me. It loads the page and passes the variable but doesn't go to the anchor. I've searched for examples on the anchor tag, and there's tons of them, but nobody talks about jumping to an anchor in a page while also passing parameters in the URL.
这对我来说似乎没有用。它加载页面并传递变量,但不会转到锚点。我在锚标签上搜索了一些例子,其中有很多,但没有人谈到跳转到页面中的锚点,同时也传递了URL中的参数。
1 个解决方案
#1
97
The bookmark always goes last.
书签总是最后的。
<A HREF="otherpage.htm?data=1234#blah">Good Stuff!</A>
#1
97
The bookmark always goes last.
书签总是最后的。
<A HREF="otherpage.htm?data=1234#blah">Good Stuff!</A>