thinkphp的ajax的验证码错误自动刷新怎么写?写在这个返回函数的else这里
附上下面的html
How to write automatic refresh of Ajax verification code error in thinkphp? -PHP Chinese website Q&A-How to write automatic refresh of verification code error in thinkphp's ajax? -PHP Chinese website Q&A
Let’s take a look and learn.
在失败的情况下,再次触发点击事件就可以了
else{ $('#2').html('验证码错误'); $('#verif_img').click(function(){ $.get(你的url,{你要传的数据},function(e){ }) }) }
How to write automatic refresh of Ajax verification code error in thinkphp? -PHP Chinese website Q&A-How to write automatic refresh of verification code error in thinkphp's ajax? -PHP Chinese website Q&A
Let’s take a look and learn.
在失败的情况下,再次触发点击事件就可以了