頁面加載跳轉到指定位置

一、在頁面須要跳轉到的位置加上id="test"code

二、js代碼以下:ip

<script>
    $(function(){
        window.location.hash="#test";
    })
   </script>
相關文章
相關標籤/搜索