验证码刷新

<img src="/Account/CheckLoginCode" id="login_code"/>
                        
<href="javascript:void(0);" onclick="$('#login_code').click();style="font-size:12px;">点击重新加载</a>
<script type="text/javascript">
 
    $(function () {
 
        $("#login_code").bind("click", function () {
 
            this.src = "../Account/CheckLoginCode?time=" + (new Date()).getTime();
 
        });
 
        //alert("good");
 
    });
 
</script>
原文地址:https://www.cnblogs.com/wiming/p/4334845.html