Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
d89e90ff
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d89e90ff
编写于
1月 06, 2023
作者:
L
laosan_ted
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix webview docs problem
Signed-off-by:
N
laosan_ted
<
wangruichang@huawei.com
>
上级
b5d257a0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
8 deletion
+8
-8
zh-cn/application-dev/reference/apis/js-apis-webview.md
zh-cn/application-dev/reference/apis/js-apis-webview.md
+3
-3
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md
...ication-dev/reference/arkui-ts/ts-basic-components-web.md
+5
-5
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-webview.md
浏览文件 @
d89e90ff
...
@@ -1756,7 +1756,7 @@ struct WebComponent {
...
@@ -1756,7 +1756,7 @@ struct WebComponent {
getTitle(): string
getTitle(): string
获取
文件选择器
标题。
获取
当前网页的
标题。
**系统能力:**
SystemCapability.Web.Webview.Core
**系统能力:**
SystemCapability.Web.Webview.Core
...
@@ -1764,7 +1764,7 @@ getTitle(): string
...
@@ -1764,7 +1764,7 @@ getTitle(): string
| 类型 | 说明 |
| 类型 | 说明 |
| ------ | -------------------- |
| ------ | -------------------- |
| string |
返回文件选择器
标题。 |
| string |
当前网页的
标题。 |
**错误码:**
**错误码:**
...
@@ -3237,7 +3237,7 @@ struct WebComponent {
...
@@ -3237,7 +3237,7 @@ struct WebComponent {
@
Component
@
Component
struct
WebComponent
{
struct
WebComponent
{
controller
:
WebController
=
new
WebController
();
controller
:
WebController
=
new
WebController
();
webAsyncController
:
WebAsyncController
=
new
web_webview
.
WebAsyncController
(
this
.
controller
)
webAsyncController
:
web_webview
.
WebAsyncController
=
new
web_webview
.
WebAsyncController
(
this
.
controller
)
build
()
{
build
()
{
Column
()
{
Column
()
{
Web
({
src
:
'
www.example.com
'
,
controller
:
this
.
controller
})
Web
({
src
:
'
www.example.com
'
,
controller
:
this
.
controller
})
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md
浏览文件 @
d89e90ff
...
@@ -467,13 +467,13 @@ geolocationAccess(geolocationAccess: boolean)
...
@@ -467,13 +467,13 @@ geolocationAccess(geolocationAccess: boolean)
mediaPlayGestureAccess(access: boolean)
mediaPlayGestureAccess(access: boolean)
设置
视频播放是否需要用户手动点击
。
设置
有声视频播放是否需要用户手动点击,静音视频播放不受该接口管控
。
**参数:**
**参数:**
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| ------ | ------- | ---- | ---- | ----------------- |
| ------ | ------- | ---- | ---- | ----------------- |
| access | boolean | 是 | true | 设置视频播放是否需要用户手动点击。 |
| access | boolean | 是 | true | 设置
有声
视频播放是否需要用户手动点击。 |
**示例:**
**示例:**
...
@@ -2613,7 +2613,7 @@ grant(resources: Array\<string\>): void
...
@@ -2613,7 +2613,7 @@ grant(resources: Array\<string\>): void
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| --------- | --------------- | ---- | ---- | ------------- |
| --------- | --------------- | ---- | ---- | ------------- |
| resources | Array
\<
string
\>
| 是 | - |
网页所请求的权限
资源列表。 |
| resources | Array
\<
string
\>
| 是 | - |
授予网页请求的权限的
资源列表。 |
## WebContextMenuParam<sup>9+</sup>
## WebContextMenuParam<sup>9+</sup>
...
@@ -4141,7 +4141,7 @@ getCookie(url: string): string
...
@@ -4141,7 +4141,7 @@ getCookie(url: string): string
Column
()
{
Column
()
{
Button
(
'
getCookie
'
)
Button
(
'
getCookie
'
)
.
onClick
(()
=>
{
.
onClick
(()
=>
{
let
value
=
webview
.
WebCookieManager
.
getCookie
(
'
www.example.com
'
)
let
value
=
web
_web
view
.
WebCookieManager
.
getCookie
(
'
www.example.com
'
)
console
.
log
(
"
value:
"
+
value
)
console
.
log
(
"
value:
"
+
value
)
})
})
Web
({
src
:
'
www.example.com
'
,
controller
:
this
.
controller
})
Web
({
src
:
'
www.example.com
'
,
controller
:
this
.
controller
})
...
@@ -4513,7 +4513,7 @@ deleteSessionCookie(): void
...
@@ -4513,7 +4513,7 @@ deleteSessionCookie(): void
Column
()
{
Column
()
{
Button
(
'
deleteSessionCookie
'
)
Button
(
'
deleteSessionCookie
'
)
.
onClick
(()
=>
{
.
onClick
(()
=>
{
webview
.
WebCookieManager
.
deleteSessionCookie
()
web
_web
view
.
WebCookieManager
.
deleteSessionCookie
()
})
})
Web
({
src
:
'
www.example.com
'
,
controller
:
this
.
controller
})
Web
({
src
:
'
www.example.com
'
,
controller
:
this
.
controller
})
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录