返回上一頁
最簡單的就是這個
<a onClick="javascript :history.back(-1);"> </a>
js內
window.history.go(-1)
刷新頁面
1 history.go(0)
2 location.reload()
3 location=location
4 location.assign(location)
5 document.execCommand('Refresh')
6 window.navigate(location)
7 location.replace(location)
8 document.URL=location.href
參考這篇文章:https://www.cnblogs.com/guoxianglei/p/9883164.html
跳轉
無參數
window.location.href="order.php";
帶參數
var param=1; var myurl="order.php"+"?"+"order_id="+param; window.location.assign(encodeURI(myurl));