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

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ## Response 使用指定值創建`Response`實例。 Though this object isn't usually instantiated by end-users, it is the primary object interacted with when it comes time to add data to a view. ```typescript http.request('my-friends.txt').subscribe(response => this.friends = response.text()); ``` The Response's interface is inspired by the Response constructor defined in the Fetch Spec, but is considered a static value whose body can be accessed many times. There are other differences in the implementation, but this is the most significant. ### 類定義 ```typescript class Response extends Body { constructor(responseOptions: ResponseOptions) type : ResponseType ok : boolean url : string status : number statusText : string bytesLoaded : number totalBytes : number headers : Headers toString() : string } ``` ### 屬性 - type : `ResponseType` “basic", "cors", "default", "error" 或者 "opaque", 默認為 "default" - ok : `boolean` 如果響應狀態在200-299內為`True` - url : `string` 響應URL, 默認為空字符串 - status : `number` 服務器返回的狀態碼,默認為200 - statusText : `string` Text representing the corresponding reason phrase to the status, as defined in [ietf rfc 2616 section 6.1.1](https://tools.ietf.org/html/rfc2616#section-6.1.1),默認為"OK" - bytesLoaded : `number` Non-standard property Denotes how many of the response body's bytes have been loaded, for example if the response is the result of a progress event. totalBytes : `number` Non-standard property Denotes how many bytes are expected in the final response body. headers : `Headers` Headers object based on the Headers class in the [Fetch Spec](https://fetch.spec.whatwg.org/#headers-class). toString() : `string`
                  <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>

                              哎呀哎呀视频在线观看