验证码刷新只需要在 点击之后更换一下验证码的地址就可以。
function recap(){
var ts = Date.parse(new Date())/1000
$('#reimg').attr('src','/captcha?rand='+ts)
}
这里的rand好像是固定的参数,我只前用的id做参数虽然验证码刷新了但是一直后台提示验证码错误。
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!