提交 25ba56cf 编写于 作者: Z zhanghaifeng

格式化问题修改

Signed-off-by: Nzhanghaifeng <zhanghaifeng11@huawei.com>
上级 b5e4f4da
# @system.fetch (数据请求) # @system.fetch (数据请求)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > **说明:**
> - 从API Version 6开始,该接口不再维护,推荐使用新接口[`@ohos.net.http`](js-apis-http.md)。 > - 从API Version 6开始,该接口不再维护,推荐使用新接口[`@ohos.net.http`](js-apis-http.md)。
> >
> - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
...@@ -30,7 +30,7 @@ fetch(Object): void ...@@ -30,7 +30,7 @@ fetch(Object): void
| header | Object | 否 | 设置请求的header。 | | header | Object | 否 | 设置请求的header。 |
| method | string | 否 | 请求方法默认为GET,可选值为:OPTIONS、GET、HEAD、POST、PUT、DELETE、TRACE。 | | method | string | 否 | 请求方法默认为GET,可选值为:OPTIONS、GET、HEAD、POST、PUT、DELETE、TRACE。 |
| responseType | string | 否 | 默认会根据服务器返回header中的Content-Type确定返回类型,支持文本和json格式。详见success返回值。 | | responseType | string | 否 | 默认会根据服务器返回header中的Content-Type确定返回类型,支持文本和json格式。详见success返回值。 |
| success | Function | 否 | 接口调用成功的回调函数。返回值为[FetchResponse](#FetchResponse)>| | success | Function | 否 | 接口调用成功的回调函数,返回值为[FetchResponse](#fetchresponse) |
| fail | Function | 否 | 接口调用失败的回调函数。 | | fail | Function | 否 | 接口调用失败的回调函数。 |
| complete | Function | 否 | 接口调用结束的回调函数。 | | complete | Function | 否 | 接口调用结束的回调函数。 |
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
``` ```
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > **说明:**
> 默认支持https,如果要支持http,需要在config.json里增加network标签,属性标识 "cleartextTraffic": true。即: > 默认支持https,如果要支持http,需要在config.json里增加network标签,属性标识 "cleartextTraffic": true。即:
> >
> ``` > ```
......
# @system.network (网络状态) # @system.network (网络状态)
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > **说明:**
> - 从API Version 7 开始,该接口不再维护,推荐使用新接口[`@ohos.telephony.observer`](js-apis-observer.md)。 > - 从API Version 7 开始,该接口不再维护,推荐使用新接口[`@ohos.telephony.observer`](js-apis-observer.md)。
> >
> - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > - 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
...@@ -33,7 +33,7 @@ getType(Object): void ...@@ -33,7 +33,7 @@ getType(Object): void
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| success | Function | 否 | 接口调用成功的回调函数。 返回值为[NetworkResponse](#NetworkResponse)>| | success | Function | 否 | 接口调用成功的回调函数,返回值为[NetworkResponse](#networkresponse) |
| fail | Function | 否 | 接口调用失败的回调函数。 | | fail | Function | 否 | 接口调用失败的回调函数。 |
| complete | Function | 否 | 接口调用结束的回调函数。 | | complete | Function | 否 | 接口调用结束的回调函数。 |
...@@ -73,7 +73,7 @@ subscribe(Object): void ...@@ -73,7 +73,7 @@ subscribe(Object): void
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| success | Function | 否 | 网络发生变化的回调函数。返回值为[NetworkResponse](#NetworkResponse)> | | success | Function | 否 | 网络发生变化的回调函数,返回值为[NetworkResponse](#networkresponse) |
| fail | Function | 否 | 接口调用失败的回调函数。 | | fail | Function | 否 | 接口调用失败的回调函数。 |
fail返回值: fail返回值:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册