<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 功能強大 支持多語言、二開方便! 廣告
                請先看 [套路之類結構](http://www.hmoore.net/railsbug/thinkcmf/419136) 分頁源碼 ~~~ public function __construct($items) { if (!$items instanceof Collection) { $items = Collection::make($items); } $items = $items->slice(0, $this->listRows); $this->items = $items; } public static function make($items) { return new static($items, $listRows, $currentPage, $total, $simple, $options); } ~~~ 可以看出,類結構都是一個套路的,make,__contruct。 不同的是,分頁中調用了Collection類的make函數。實例化以后,還用了一次slice切片方法。 page分頁如何運用呢? 它是通過繼承來實現分頁的。 ~~~ class Bootstrap extends Paginator ~~~ 至此,分頁的大體脈絡咱們就掌握了 thinkphp創建了Collection類。 paginator的item本質上是一個Collection對象,里面封裝了一些自己對item的操作方法。 bootstrap類繼承了paginator類,是對html結構的一些封裝。
                  <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>

                              哎呀哎呀视频在线观看