数据分析师2017-10-01 00:04:05
Any doubts about the verification code? -PHP Chinese website Q&A-Some questions about the verification code? -PHP Chinese website Q&A
Let’s take a look and learn.
迷茫2017-02-11 09:15:52
我们在控制器中引入手册中的即可
public function verify(){ //验证码 $Verify = new \Think\Verify(); $Verify->fontSize = 40; $Verify->codeSet = '0123456789'; $Verify->length = 4; $Verify->useNoise = true; $Verify->entry(); }
然后在html页面也要写上一点代码,如下:
这样在页面中就可以显示验证码,然后我们点击验证码,还会刷新验证码!