Thinkphp learns and uses the verification code to accidentally make a mistake.
First look at the code: 1 $ (". verify_img "). click (function () {2 var timenow = new Date (). getTime (); 3 var url = "{: U ('index/loginverify ')} & t =" + timenow; 4 alert (url); 5 $ (this ). attr ("src", url) 6}); the above Code causes the verification code to be clicked to switch, and the verification code image cannot be displayed. Let's look at the following code: $ (". reloadverify "). click (function () {var timenow = new Date (). getTime (); var url = "{: U ('index/loginVerify ')}? T = "+ timenow; $ (" # image_d "). attr (" src ", url)}); what is the region of the above Code? And. After comparison, we can see where the problem is. It is also valid to keep up with a random number after the question mark. Var url = "{: U ('index/loginVerify ')}? "+ Math. random (); it is clear to write the question here.