一、在页面须要跳转到的位置加上id="test"code
二、js代码以下:ip
<script> $(function(){ window.location.hash="#test"; }) </script>