1、在页面需要跳转到的位置加上id="test"
2、js代码如下:
<script>
$(function(){
window.location.hash="#test";
})
</script>
1、在页面需要跳转到的位置加上id="test"
2、js代码如下:
<script>
$(function(){
window.location.hash="#test";
})
</script>
转载于:https://my.oschina.net/u/2561199/blog/703325