Thinkphp Thinkphp5 Thinkphp5.1 点击刷新验证码,点击更换验证码

一、在Thinkphp中引入验证码类

<img src="{:captcha_src()}" onclick="this.src='/captcha?id='+Math.random()" alt="验证码" title="点击刷新" style="cursor: pointer">

AD:阿里云2000元代金券九折优惠点我领取 ¥2000元大礼包

AD:腾讯云2860元无门槛代金券,限时领取点我领取 ¥2860无门槛代金券