<script>
函數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_im$()." "/index.php/captcha?id="+str);
}
</script>
經過測試這樣可以
轨迹2017-11-10 16:42:06
我是這樣寫的
var ts = Date.parse(new Date())/1000;
$("#verify_img").r("src","r("src","r("src","r("src")" {:captcha_src()}?id="+ts);//刷新驗證碼