From 0f87fbdfbd80d7ddd45096ee0890eed576eaac1a Mon Sep 17 00:00:00 2001 From: anyueling Date: Wed, 27 Jul 2022 16:51:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: anyueling --- zh-cn/application-dev/reference/apis/js-apis-request.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 75d6b4faa5..4d9678a169 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"。 + ## 常量 -- GitLab