未验证 提交 f7fa9ed6 编写于 作者: 周礼亭 提交者: Gitee

修改cookie使用说明

Signed-off-by: N周礼亭 <zhouliting5@huawei.com>
上级 bf093df8
...@@ -3327,7 +3327,7 @@ struct WebComponent { ...@@ -3327,7 +3327,7 @@ struct WebComponent {
> **说明:** > **说明:**
> >
> - 目前调用WebCookieManager下的方法,都需要先加载web组件。 > 目前调用WebCookieManager下的方法,都需要先加载Web组件。
### getCookie ### getCookie
...@@ -3791,6 +3791,10 @@ struct WebComponent { ...@@ -3791,6 +3791,10 @@ struct WebComponent {
通过WebStorage可管理Web SQL数据库接口和HTML5 Web存储接口,每个应用中的所有Web组件共享一个WebStorage。 通过WebStorage可管理Web SQL数据库接口和HTML5 Web存储接口,每个应用中的所有Web组件共享一个WebStorage。
> **说明:**
>
> 目前调用WebCookieManager下的方法,都需要先加载Web组件。
### deleteOrigin ### deleteOrigin
static deleteOrigin(origin : string): void static deleteOrigin(origin : string): void
...@@ -4251,6 +4255,10 @@ struct WebComponent { ...@@ -4251,6 +4255,10 @@ struct WebComponent {
web组件数据库管理对象。 web组件数据库管理对象。
> **说明:**
>
> 目前调用WebCookieManager下的方法,都需要先加载Web组件。
### getHttpAuthCredentials ### getHttpAuthCredentials
static getHttpAuthCredentials(host: string, realm: string): Array\<string> static getHttpAuthCredentials(host: string, realm: string): Array\<string>
...@@ -4429,6 +4437,10 @@ struct WebComponent { ...@@ -4429,6 +4437,10 @@ struct WebComponent {
web组件地理位置权限管理对象。 web组件地理位置权限管理对象。
> **说明:**
>
> 目前调用WebCookieManager下的方法,都需要先加载Web组件。
### 需要权限 ### 需要权限
访问地理位置时需添加权限:ohos.permission.LOCATION、ohos.permission.APPROXIMATELY_LOCATION、ohos.permission.LOCATION_IN_BACKGROUND,具体权限说明请参考[位置服务](./js-apis-geolocation.md) 访问地理位置时需添加权限:ohos.permission.LOCATION、ohos.permission.APPROXIMATELY_LOCATION、ohos.permission.LOCATION_IN_BACKGROUND,具体权限说明请参考[位置服务](./js-apis-geolocation.md)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册