<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.yiichina.com/doc/guide/2.0/structure-assets)中已有描述,這里不再贅述 這里要講的是,如何調用資源包內的CSS、JS資源,引入到布局或視圖中 當時我創建好了資源包(AdminAsset.php),也在布局中寫了如下代碼: ```php use app\assets\AdminAsset; AdminAsset::register($this); ``` 根據官方示例,這應該就行了呀? 但我刷新了N次,資源包中的前端資源依舊沒有被引入 各種翻文檔、搜索無果 正絕望時,偶然看了下框架自帶的示例布局文件`layout.php`,豁然開朗,原來是差了5句代碼啊: `$this->beginPage();` 加在所有html代碼前面 `$this->head()` 加在</head>前面 `$this->beginBody()` 加在<body>后面 `$this->endBody()` 加在</body>前面 `$this->endPage()` 加在所有html代碼后面 加上這5句代碼后,前端資源終于被正常引用了 如果以上你看不太懂,建議去翻翻框架自帶的示例布局文件`layout.php`
                  <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>

                              哎呀哎呀视频在线观看