From 7f49d2a80bb6ba6055ad31403568819bb00fc460 Mon Sep 17 00:00:00 2001 From: zhufenghao Date: Mon, 19 Dec 2022 11:02:46 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90web=E3=80=91=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3setWebController=E3=80=81getUnfilteredLinkUrl?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhufenghao --- .../arkui-ts/ts-basic-components-web.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md index 076b6b1f2f..8ebb4d0875 100755 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md @@ -2288,14 +2288,14 @@ onWindowNew(callback: (event: {isAlert: boolean, isUserTrigger: boolean, targetU @Entry @Component struct WebComponent { - controller:WebController = new WebController() + controller: web_webview.WebviewController = new web_webview.WebviewController() build() { Column() { Web({ src:'www.example.com', controller: this.controller }) .multiWindowAccess(true) .onWindowNew((event) => { console.log("onWindowNew...") - var popController: WebController = new WebController() + var popController: web_webview.WebviewController = new web_webview.WebviewController() event.handler.setWebController(popController) }) } @@ -2636,19 +2636,19 @@ exitFullScreen(): void ## ControllerHandler9+ -设置用户新建web组件的的WebController对象。示例代码参考[onWindowNew事件](#onwindownew9)。 +设置用户新建web组件的的WebviewController对象。示例代码参考[onWindowNew事件](#onwindownew9)。 ### setWebController9+ -setWebController(controller: WebController): void +setWebController(controller: WebviewController): void -设置WebController对象。 +设置WebviewController对象。 **参数:** | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | | ---------- | ------------- | ---- | ---- | ------------------------- | -| controller | WebController | 是 | - | 新建web组件的的WebController对象。 | +| controller | [WebviewController](../apis/js-apis-webview.md#webviewcontroller) | 是 | - | 新建web组件的的WebviewController对象。 | ## WebResourceError @@ -3140,9 +3140,9 @@ getLinkUrl(): string | ------ | ------------------------- | | string | 如果长按位置是链接,返回经过安全检查的url链接。 | -### getUnfilterendLinkUrl9+ +### getUnfilteredLinkUrl9+ -getUnfilterendLinkUrl(): string +getUnfilteredLinkUrl(): string 获取链接地址。 -- GitLab