user_image
By  璩鳐125    On   2020年2月18日 11:43

找到最简单的方法刷新就一段js <script> $('img.captcha').click(function() { $.getJSON('/captcha/refresh/',function(json) { // This should update your captcha image src and captcha hidden input console.log(json); $("img.captcha").attr("src",json.image_url); $("#id_captcha_0").val(json.key); }); return false; }); </script>