js重载图片

function loadimg()
{
    var img=document.getElementById("codeimg");
    img.setAttribute('src','../my99/ValidateCode.aspx?'+Math.random());
}
原文地址:https://www.cnblogs.com/anan/p/1435629.html