diff --git a/zh-cn/application-dev/reference/apis/js-apis-request.md b/zh-cn/application-dev/reference/apis/js-apis-request.md index 75d6b4faa5586f948c01259d0d39fb90f7523f2f..4d9678a1694a311aa03b106f777758f7c344aeff 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-request.md +++ b/zh-cn/application-dev/reference/apis/js-apis-request.md @@ -15,9 +15,7 @@ import request from '@ohos.request'; ## 限制与约束 - -默认支持https,如果要支持http,需要在config.json里增加network标签,属性标识 "cleartextTraffic": true。即: - +在开发FA模型下的应用程序时,需要在config.json配置文件中对应用结构进行声明,在config.json文件中增加network标签,属性标识 "cleartextTraffic": true。即: ``` var config = { "deviceConfig": { @@ -30,6 +28,8 @@ var config = { } } ``` +在开发stage模型下的应用程序时,需要在module.json和app.json配置文件中对应用结构进行声明,不涉及属性标识 "cleartextTraffic"。 + ## 常量