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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                自定義彈層是在 `layer.open()` 基礎上分裝的,其他彈層請參考 [彈層組件文檔 - layui.layer](http://www.layui.com/doc/modules/layer.html) 文檔 ##自定義彈層 詳情使用請參考在線體驗 [http://tpadmin.demo.tianpian.net.cn](http://tpadmin.demo.tianpian.net.cn) 默認管理員帳號:admin,默認管理員密碼:123456 ###方法 `layer_open(title,url,opt)` ###參數 | 參數名稱 | 類型 | 使用說明 | | --- | --- | --- | | title | string | 彈層標題,必填 | | url | string | 彈層鏈接 `(opt.type == 1,默認)` 或 HTML 代碼 `(opt.type == 2,自定義)`,必填 | | opt | object | 彈層選項,選填 | | opt.w | string | 彈層寬度,100px 或 80% 這樣的單位 | | opt.h | string | 彈層高度,100px 或 80% 這樣的單位 | | opt.type | enum | 彈層類型,1 - 基于 HTML 的彈層 ; 2 - 基于 url 鏈接的彈層 | | opt.confirm | bool | 彈層關閉警告,默認 false | | opt.fn | function | 彈層完成后的回調函數 | | opt.nav | bool | 是否開啟面包屑自動導航,默認 true ,開啟 | ###使用示例 ``` // 簡單調用 // 可以根據需要添加參數,默認彈層長寬都為 80% layer_open('彈層標題',‘{:\\think\\Url::build("Controller/action")}’); // 關閉彈層會有警告阻止直接 layer_open('彈層標題',‘{:\\think\\Url::build("Controller/action")}’,{confirm:true}); // 實例化彈層后調用回調函數 callback layer_open('彈層標題',‘{:\\think\\Url::build("Controller/action")}’,{fn:callback}); // 傳入 HTML 代碼打開彈層,此時必須配置 type 為 1 layer_open('彈層標題','HTML代碼',{type:1}); // 全屏打開彈層,可以使用 full_page(title,url,opt) 方法代替 layer_open('彈層標題',‘{:\\think\\Url::build("Controller/action")}’,{w:'100%',h:'100%'}); /** * 全屏打開窗口,參數見layer_open */ function full_page(title,url,opt) { return layer_open(title,url,$.extend({w:"100%",h:"100%"},opt)) }; ``` >[info] 在 iframe 內部打開一個 iframe 頁面,可以使用 open_window(title,url) 的方法在 iframe 打開一個和它同級的頁面,主要應用于在列表首頁打開回收站 ``` // 打開回收站 <a href="javascript:;" onclick="open_window('回收站','/admin/admin_group/recyclebin.html')" class="btn btn-secondary radius ml-5"><i class="Hui-iconfont"></i> 回收站</a> ```
                  <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>

                              哎呀哎呀视频在线观看