imgObj.src="inc/verify.php?t="+new Date().getTime();//重新设置一下src即可

解决方案 »

  1.   

    <img id="imgVerify" src="inc/verify.php" />
    var img = document.getElementById("imgVerify");
    img.src = "inc/verify.php?" + Math.random();
      

  2.   

    按钮onclick事件执行,如楼上所说的src重置
      

  3.   

    但是在firefox裡沒有反應,好象不支持src屬性
      

  4.   

    onclick="this.src='inc/verify.php?' + Math.random();"
      

  5.   

    行了,谢谢,原来没有加Math.random(),没有加Math.random();在ie上可以,在ff上就没反应了。