<script>
function refreshVerify(){
var ts = Date.parse(new Date())/1000;
$("#verify_img").attr("src", "/captcha?id="+ts);
}
</script>
肆百禾2018-03-21 22:42:39
<script>
function refreshVerify(){
var str = Date.parse(new Date())/1000;
$('#verify_img').attr("src", "/index.php/captcha?id="+str);
}
</script>
After testing, this works
鑫仔2017-11-22 11:17:26
Pay attention to the naming of verify and verity. The teacher used two names. Check to see if you have mistaken ty and fy.
轨迹2017-11-10 16:42:06
This is how I wrote it
var ts = Date.parse(new Date())/1000;
{:captcha_src()}?id="+ts);//Refresh verification code