提交 d89e90ff 编写于 作者: L laosan_ted

fix webview docs problem

Signed-off-by: Nlaosan_ted <wangruichang@huawei.com>
上级 b5d257a0
......@@ -1756,7 +1756,7 @@ struct WebComponent {
getTitle(): string
获取文件选择器标题。
获取当前网页的标题。
**系统能力:** SystemCapability.Web.Webview.Core
......@@ -1764,7 +1764,7 @@ getTitle(): string
| 类型 | 说明 |
| ------ | -------------------- |
| string | 返回文件选择器标题。 |
| string | 当前网页的标题。 |
**错误码:**
......@@ -3237,7 +3237,7 @@ struct WebComponent {
@Component
struct WebComponent {
controller: WebController = new WebController();
webAsyncController: WebAsyncController = new web_webview.WebAsyncController(this.controller)
webAsyncController: web_webview.WebAsyncController = new web_webview.WebAsyncController(this.controller)
build() {
Column() {
Web({ src: 'www.example.com', controller: this.controller })
......
......@@ -467,13 +467,13 @@ geolocationAccess(geolocationAccess: boolean)
mediaPlayGestureAccess(access: boolean)
设置视频播放是否需要用户手动点击
设置有声视频播放是否需要用户手动点击,静音视频播放不受该接口管控
**参数:**
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| ------ | ------- | ---- | ---- | ----------------- |
| access | boolean | 是 | true | 设置视频播放是否需要用户手动点击。 |
| access | boolean | 是 | true | 设置有声视频播放是否需要用户手动点击。 |
**示例:**
......@@ -2613,7 +2613,7 @@ grant(resources: Array\<string\>): void
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| --------- | --------------- | ---- | ---- | ------------- |
| resources | Array\<string\> | 是 | - | 网页所请求的权限资源列表。 |
| resources | Array\<string\> | 是 | - | 授予网页请求的权限的资源列表。 |
## WebContextMenuParam<sup>9+</sup>
......@@ -4141,7 +4141,7 @@ getCookie(url: string): string
Column() {
Button('getCookie')
.onClick(() => {
let value = webview.WebCookieManager.getCookie('www.example.com')
let value = web_webview.WebCookieManager.getCookie('www.example.com')
console.log("value: " + value)
})
Web({ src: 'www.example.com', controller: this.controller })
......@@ -4513,7 +4513,7 @@ deleteSessionCookie(): void
Column() {
Button('deleteSessionCookie')
.onClick(() => {
webview.WebCookieManager.deleteSessionCookie()
web_webview.WebCookieManager.deleteSessionCookie()
})
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.
先完成此消息的编辑!
想要评论请 注册