首先使用Composer安装think-captcha扩展包(TP5中一般都自带vendor\topthink\think-captcha ): composer require topthink/think-captcha HTML(用的bootstrap): <input type="text" class="form-control" name="vcode" placehol