<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                composer 安裝 composer require topthink/think-captcha ``` ~~~ 注意命名空間 ~~~ use think\captcha\Captcha; ~~~ //加載驗證碼 public function code(){ $captcha = new Captcha(); //設置驗證碼長度 $captcha->length = 4; //驗證碼寬度 $captcha->imageW= 100; //驗證碼高度 $captcha->imageH =19; //驗證碼字體大小 $captcha->fontSize = 10; //設置是否啟用驗證碼是否是中文 // $captcha->useZh = true; // 返回驗證碼 return $captcha->entry(); } ~~~ ``` ## 模版頁面調用 ~~~ <img onclick="this.src='index/user/code?'+Math.random()" alt="點擊更換" title="點擊更換" src="index/user/code" /> ~~~ ~~~ ## 驗證碼驗證規則 ``` 'code'=>'require|captcha', ``` ~~~ 第二種直接下載;調用 <div style="width: 190px"> <input style="width:50%; float:left;" class="form-control" placeholder="驗證碼" name="code" type="text"> <img class="form-control" style="width:50%; border:0; padding:0 0 0 5px; float:left; cursor:pointer;" onclick="this.src='{:captcha_src()}?'+Math.random()" src="{:captcha_src()}"> </div>
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看