js返回上一页并刷新

window.history.go(-1);
url  = document.referrer;
url += (url.indexOf('?')==-1) ? "?" : "&";
url += "tmp="+Math.random();
location.href = url;
如上,很不错。

你可能感兴趣的:(js,刷新,返回,上一页)