JS返回上一页并刷新

1
2
window.history.go(-1); //返回上一页不刷新
window.location.href = document.referrer; //返回上一页并刷新