且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Js无刷新请求新验证码图片!

更新时间:2022-04-07 07:49:08

超简单:只加一句onclick就行了...

<img id="verifyCode" src="../Common/VerifyCodePage.aspx" alt="" onclick="this.src='../Common/VerifyCodePage.aspx?='+Math.random();" />