Rumah > Soal Jawab > teks badan
<skrip>
fungsi refreshVerify(){
var ts = Date.parse(new Date())/1000;
$("#verify_img").attr("src", "/captcha?id ="+ts);
}
</script>
肆百禾2018-03-21 22:42:39
<skrip>
fungsi refreshVerify(){
var str = Date.parse(new Date())/1000;
$('#verify_img').attr("src", "/index.php/captcha? id="+str);
}
</script>
Selepas ujian, ini berfungsi
轨迹2017-11-10 16:42:06
Beginilah cara saya menulisnya
var ts = Date.parse(new Date())/1000;
+ts);//Muat semula kod pengesahan