<script>
函数refreshVerify(){
var ts = Date.parse(new Date())/1000;
$("#verify_img ").attr("src", "/captcha?id="+ts);
}
肆百禾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>
经测试这样可以
轨迹2017-11-10 16:42:06
我是这样写的
var ts = Date.parse(new Date())/1000;
$("#verify_img").attr("src","{:captcha_src()}?id="+ts);//刷新验证码