[oldboy-django][2深入django]点击刷新验证码

时间:2025-02-05 10:04:14
# 点击更新验证码,只要重新在发送一个请求即可

<img src="/check_code/" onclick="updateCode(this);"  width="150px" height="34px" title="点击刷新验证码">

    function updateCode(ths) {
ths.src = ths.src + '?'
}
/check_code/ 和/check_code/? 在匹配url的时候都是匹配到/check_code/的