当前位置:Gxlcms > JavaScript > 解决js中window.open弹出的是上次的缓存页面问题

解决js中window.open弹出的是上次的缓存页面问题

时间:2021-07-01 10:21:17 帮助过:1人阅读

解决window.open打开的页面会保存缓存的问题。

在页面的head标签中加入以下代码
代码如下:

<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="0" />

人气教程排行