<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>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## 自制標簽taglib 新建一個類 `common/tag/Custom.php` 在config.php文件中 ``` 'template' => [ ... // 標簽庫標簽開始標記 'taglib_begin' => '<', // 標簽庫標簽結束標記 'taglib_end' => '>', 'taglib_build_in'=>'cx,app\common\tag\Custom' //cx為官方的 帶加入進去 ] ``` 在`common/tag/Custom.php` 中 ``` namespace app\common\tag; use \think\template\TagLib; class Custom extends TagLib { protected $tags = array( 'testclose' => array('attr' => 'name,content','close' =>0), //默認為對稱標簽 'testopen' => array('attr' => 'name'), ); /** * 閉合標簽 * 注意方法的命名, tag+標簽名 標簽名大寫 */ public function tagTestclose($tag, $content) { $parseStr ="<h1>{$tag['name']}---{$tag['content']}</h1>"; return $parseStr; } //對標簽 public function tagTestopen($tag,$content){ $parseStr=''; $parseStr.="<h1>{$tag['name']}</h1>"; $parseStr.="<br/>content: {$content}"; return $parseStr; } } ``` 在`html模版中` ``` <testclose name="測試name" content="測試content"/> <br> <testopen name="name 測試">內容content測試</testopen> ```
                  <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>

                              哎呀哎呀视频在线观看