可以试一下在src
后边随便加一个随机参数,让IE每次重新请求连接地址。如果不加的话,IE只请求第一次,也就是src
改变的时候。
<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
function getPic(){
$("img").attr("src","http://localhost:8080/qns/xxxx.jpg?t="+Math.random());
}
</script>
</head>
<body>
<img src="/i/eg_smile.gif" onclick="getPic()" />
</body>
</html>