首页 > 语言 > JavaScript > 正文

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

2024-05-06 14:38:07
字体:
来源:转载
供稿:网友
解决window.open打开的页面会保存缓存的问题。

在页面的head标签中加入以下代码
代码如下:
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="0" />
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选