加一个随机参数
<script language="javascript">
alert('成功删除!');
window.location.href="BoxResult.jsp?Condition=<%=condi1%>&KeyStr=<%=keyWord%>&search=submit&temp="+Math.random();
</script>2.
在BoxResult.jsp里面加入
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
// or response.setHeader("Cache-Control","no-store");//HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
<script language="javascript">
alert('成功删除!');
window.location.href="BoxResult.jsp?Condition=<%=condi1%>&KeyStr=<%=keyWord%>&search=submit&temp="+Math.random();
</script>2.
在BoxResult.jsp里面加入
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
// or response.setHeader("Cache-Control","no-store");//HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
to sunnyyzr() 我现在的问题不是不能返回到boxresult,jsp 而是返回到这个页面后不能显示更新过后的表
document.location.replace(地址)会进入最新的页面。用href会进入缓存的页面