history.back()是客户端的,temp文件夹中的内容 browser cache
刷新window.location.href=window.location.href,
server, 从服务器中将有从服务器再下载, 只是有此图片内容是旧的,不用全部下载,
而html应该是再下载一次.
window.location.reload();
Optional. Boolean that specifies one of the following possible values:
false Default. Reloads the page from the browser cache.
true Reloads the page from the server.
window.location.replace(); history clear;
Response.redirect("abc.asp");
必不相当于reload或location.href=
这是http文件头写入数据,相当于在<meta>中回入转向一样
< meta http-equiv="refresh" content="2;URL=3.htm">,所以据有的javascript都得不到执行
缺点是不是服务端的转向 server.transfer, 也就是服务端的原始页的解释工作必没有结束,
于是有reponse.redirect("url", bool)true是结束,
[C#]
public void Redirect(
string url,
bool endResponse
);
Redirect 调用 End,该方法在完成时引发 ThreadAbortException 异常。
transfer是服务端的,它会自已结束当前线程
Response.redirect不会,是客户端,解析工作继续执行