点击链接时刷新页面 [英] Refresh page when clicked on link

查看:90
本文介绍了点击链接时刷新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

点击href时,我有以下内容刷新我的页面。

I have the following to refresh my page when clicked on href.

    <a href="javascript:history.go(0)">Click to refresh the page</a>

我有这个

    <meta http-equiv="no-cache"> 

放在头标签中。即使这样我就得到了一个缓存副本。如何避免加载缓存副本?

in the head tag. Even then I am getting a cached copy. How can I avoid loading cached copy?

推荐答案

而不是

instead of

javascript:history.go(0);

您可以使用

you may use

javascript:window.location.reload();

这篇关于点击链接时刷新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆