现在有A和B两个页面:
1、其中A页面包含一个按钮:<button onclick="document.location.replace('memb#one')">提交</button>
2、B页面中包含一个锚点:<a name="one" id="one">但是这么写却定位不过去,我上网查了一下,说是document.location.hash可以获取到URL的锚的部分,但是即便获取到了又该怎么做才能定位过去呢?