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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                [TOC] # json JSON 數據直接輸出: ~~~ func (this *AddController) Get() { mystruct := { ... } this.Data["json"] = &mystruct this.ServeJSON() } ~~~ 調用 ServeJSON 之后,會設置`content-type`為`application/json`,然后同時把數據進行 JSON 序列化輸出 ~~~ type JSONStruct struct { Code int Msg string } func (this *AdminController) Post(){ mystruct := &JSONStruct{0, "hello"} this.Data["json"] = mystruct this.ServeJSON() } ~~~ # xml XML 數據直接輸出: ~~~ func (this *AddController) Get() { mystruct := { ... } this.Data["xml"]=&mystruct this.ServeXML() } ~~~ 調用 ServeXML 之后,會設置`content-type`為`application/xml`,同時數據會進行 XML 序列化輸出 # jsonp ~~~ func (this *AddController) Get() { mystruct := { ... } this.Data["jsonp"] = &mystruct this.ServeJSONP() } ~~~ 調用 ServeJSONP 之后,會設置`content-type`為`application/javascript`,然后同時把數據進行 JSON 序列化,然后根據請求的 callback 參數設置 jsonp 輸出
                  <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>

                              哎呀哎呀视频在线观看