<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                [toc] # fast api請求 fast后臺的ajax是封裝過的,無需處理帶token這些。 使用示例 ```js Fast.api.get() ``` ## 方法 ### ajax請求 封裝自jquery的ajax方法,options參數上一致 ```js Fast.api.ajax({ type:"POST", // 默認 url:"", data:{...}, // 請求參數 dataType:"json", // 返回數據處理解析辦法 }, function(ret, data) { // 請求成功 }, function(ret, data) { // 請求失敗 }); ``` ### query 獲取Url參數 ``` const url = "http://edk24.com/app?name=測試"; Fast.api.query("name", url); ``` ### open 打開新窗口 擴展自`layer.open()`方法 ``` Fast.api.open(url, title, options) ``` options參考 ```js { type: 2, // 彈出類型,參考layer.open title: title, // 標題 shadeClose: true, //點擊遮罩關閉 shade: false, // 遮罩顯示 maxmin: true, // 最大化最喜歡 moveOut: true, // 不知道 area: area, // 大小矩形 [寬度, 高度] content: url, // url or html 參考type值填寫 } ``` ### cdnurl 處理url,base64url直接返回,沒有域名的加域名,有域名的配置域名 ``` Fast.api.cdnurl(url, domain); // 參數2忽略則是當前域名 ``` ### fixurl 修復url ``` Fast.api.fixurl(url); ``` ## 事件 ### onAjaxSuccess 請求成功 ``` Fast.events.onAjaxSuccess(ret, onAjaxSuccess); ``` ### onAjaxError 請求錯誤 ``` Fast.events.onAjaxError(ret, onAjaxError) ``` ### onAjaxResponse 請求響應時 ``` Fast.events.onAjaxResponse(response) ```
                  <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>

                              哎呀哎呀视频在线观看