js返回上一页报网页过期问题解决

1.detail详细页面加上返回按钮,返回到list列表页

<input type="button" value="    返回    " onclick="javascript :history.go(-1);"/>

2.如果在list列表页中存在如下设置:需要注释掉,解决返回网页过期问题~!

<%
//response.setHeader("Pragma","No-cache");
//response.setHeader("Cache-Control","no-cache");
//response.setDateHeader("Expires", 0);
%>

 

原文地址:https://www.cnblogs.com/simpledev/p/3947817.html