模版内验证码的显示
<div>{:captcha_img()}</div>
或者
<div><imgsrc="{:captcha_src()}"alt="captcha"
/></div>
验证码配置文件路径:vendor\topthink\think-captcha\src\Captcha.php
点击验证码刷新:onClick="this.src='{:captcha_src()}?'+Math.random();"
<div class="code-img"><img src="{:captcha_src()}" alt="captcha" onClick="this.src='{:captcha_src()}?'+Math.random();" /></div>
官方文档:https://www.kancloud.cn/manual/thinkphp5/154295
来源:CSDN
作者:我是高手高手高高手
链接:https://blog.csdn.net/haibo0668/article/details/78261052