Click I can't see clearly. What's the matter with the picture not being displayed after changing to another one?
黄子乐
黄子乐 2017-11-07 19:22:54
0
8
3342

<script>

function refreshVerify(){

var ts = Date.parse(new Date())/1000;

$("#verify_img").attr("src", "/captcha?id="+ts);

}

</script>



黄子乐
黄子乐

reply all(5)
肆百禾

<script>
function refreshVerify(){
var str = Date.parse(new Date())/1000;
$('#verify_img').attr("src", "/index.php/captcha?id="+str);
}
</script>

After testing, this works

  • reply Indeed, thank you
    ??? author 2019-05-08 10:56:21
鑫仔

Pay attention to the naming of verify and verity. The teacher used two names. Check to see if you have mistaken ty and fy.

  • reply The teacher is verity_img refreshVerity But according to the teacher's video operation, it does not refresh after clicking.
    有趣儿 author 2018-04-15 22:53:31
轨迹

This is how I wrote it

var ts = Date.parse(new Date())/1000;

                                                                                                                                 {:captcha_src()}?id="+ts);//Refresh verification code


轨迹

Open the console and see if it reports 404 The path is wrong,

寻觅 beyond

Go to the js community and ask

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template