验证码快速刷新

在img标签中添加事件

onClick = "this.src = this.src + '?' +Math.random()"

保证请求的url每次不一样,避免浏览器缓存,每次请求都是新的请求

原文地址:https://www.cnblogs.com/yexiaocangji/p/6362678.html