JS(history,location的使用)返回上一頁以及返回上一頁並刷新

window.history.go(-1);//返回上一頁不刷新 window.history.back(); //返回上一頁 window.location.href = document.referrer;//返回上一頁並刷新,真正實現頁面後退並刷新頁面 history.go(1);//前進一頁 history.forward(); //前進一頁 history.length;//用le
相關文章
相關標籤/搜索