1| 操作 | 旧版本 | 新版本 | d.ts文件 |
2| ---- | ------ | ------ | -------- |
3|删除|类名:SecureDnsMode;<br>方法or属性:Off = 0|NA|@ohos.web.webview.d.ts|
4|删除|类名:SecureDnsMode;<br>方法or属性:Auto = 1|NA|@ohos.web.webview.d.ts|
5|删除|类名:SecureDnsMode;<br>方法or属性:SecureOnly = 2|NA|@ohos.web.webview.d.ts|
6|新增|NA|类名:WebviewController;<br>方法or属性:setCustomUserAgent(userAgent: string): void;|@ohos.web.webview.d.ts|
7|新增|NA|类名:WebviewController;<br>方法or属性:getCustomUserAgent(): string;|@ohos.web.webview.d.ts|
8|废弃版本有变化|类名:WebAttribute;<br>方法or属性:userAgent(userAgent: string): WebAttribute;<br>旧版本信息:|类名:WebAttribute;<br>方法or属性:userAgent(userAgent: string): WebAttribute;<br>新版本信息:10<br>代替接口: ohos.web.webview.webview.WebviewController#setCustomUserAgent|web.d.ts|
9|新增(错误码)|类名:WebviewController;<br>方法or属性:hasImage(callback: AsyncCallback\<boolean>): void;<br>旧版本信息:|类名:WebviewController;<br>方法or属性:hasImage(callback: AsyncCallback\<boolean>): void;<br>新版本信息:401,17100001|@ohos.web.webview.d.ts|
10|跨平台能力有变化|类名:webview;<br>方法or属性:declare webview<br>旧版本信息:|类名:webview;<br>方法or属性:declare webview<br>新版本信息:crossplatform|@ohos.web.webview.d.ts|
11|跨平台能力有变化|类名:WebHeader;<br>方法or属性:interface WebHeader<br>旧版本信息:|类名:WebHeader;<br>方法or属性:interface WebHeader<br>新版本信息:crossplatform|@ohos.web.webview.d.ts|
12|跨平台能力有变化|类名:WebHeader;<br>方法or属性:headerKey: string;<br>旧版本信息:|类名:WebHeader;<br>方法or属性:headerKey: string;<br>新版本信息:crossplatform|@ohos.web.webview.d.ts|
13|跨平台能力有变化|类名:WebHeader;<br>方法or属性:headerValue: string;<br>旧版本信息:|类名:WebHeader;<br>方法or属性:headerValue: string;<br>新版本信息:crossplatform|@ohos.web.webview.d.ts|
14|跨平台能力有变化|类名:WebviewController;<br>方法or属性:class WebviewController<br>旧版本信息:|类名:WebviewController;<br>方法or属性:class WebviewController<br>新版本信息:crossplatform|@ohos.web.webview.d.ts|
15|跨平台能力有变化|类名:WebviewController;<br>方法or属性:loadUrl(url: string \| Resource, headers?: Array\<WebHeader>): void;<br>旧版本信息:|类名:WebviewController;<br>方法or属性:loadUrl(url: string \| Resource, headers?: Array\<WebHeader>): void;<br>新版本信息:crossplatform|@ohos.web.webview.d.ts|
16|跨平台能力有变化|类名:WebResourceRequest;<br>方法or属性:declare class WebResourceRequest<br>旧版本信息:|类名:WebResourceRequest;<br>方法or属性:declare class WebResourceRequest<br>新版本信息:crossplatform|web.d.ts|
17|跨平台能力有变化|类名:WebResourceRequest;<br>方法or属性:constructor();<br>旧版本信息:|类名:WebResourceRequest;<br>方法or属性:constructor();<br>新版本信息:crossplatform|web.d.ts|
18|跨平台能力有变化|类名:WebResourceError;<br>方法or属性:constructor();<br>旧版本信息:|类名:WebResourceError;<br>方法or属性:constructor();<br>新版本信息:crossplatform|web.d.ts|
19|跨平台能力有变化|类名:WebResourceRequest;<br>方法or属性:getRequestUrl(): string;<br>旧版本信息:|类名:WebResourceRequest;<br>方法or属性:getRequestUrl(): string;<br>新版本信息:crossplatform|web.d.ts|
20|跨平台能力有变化|类名:WebResourceError;<br>方法or属性:declare class WebResourceError<br>旧版本信息:|类名:WebResourceError;<br>方法or属性:declare class WebResourceError<br>新版本信息:crossplatform|web.d.ts|
21|跨平台能力有变化|类名:WebResourceError;<br>方法or属性:getErrorInfo(): string;<br>旧版本信息:|类名:WebResourceError;<br>方法or属性:getErrorInfo(): string;<br>新版本信息:crossplatform|web.d.ts|
22|跨平台能力有变化|类名:WebResourceError;<br>方法or属性:getErrorCode(): number;<br>旧版本信息:|类名:WebResourceError;<br>方法or属性:getErrorCode(): number;<br>新版本信息:crossplatform|web.d.ts|
23|跨平台能力有变化|类名:WebOptions;<br>方法or属性:declare interface WebOptions<br>旧版本信息:|类名:WebOptions;<br>方法or属性:declare interface WebOptions<br>新版本信息:crossplatform|web.d.ts|
24|跨平台能力有变化|类名:WebOptions;<br>方法or属性:src: string \| Resource;<br>旧版本信息:|类名:WebOptions;<br>方法or属性:src: string \| Resource;<br>新版本信息:crossplatform|web.d.ts|
25|跨平台能力有变化|类名:WebOptions;<br>方法or属性:controller: WebController \| WebviewController;<br>旧版本信息:|类名:WebOptions;<br>方法or属性:controller: WebController \| WebviewController;<br>新版本信息:crossplatform|web.d.ts|
26|跨平台能力有变化|类名:WebInterface;<br>方法or属性:interface WebInterface<br>旧版本信息:|类名:WebInterface;<br>方法or属性:interface WebInterface<br>新版本信息:crossplatform|web.d.ts|
27|跨平台能力有变化|类名:WebInterface;<br>方法or属性:(value: WebOptions): WebAttribute;<br>旧版本信息:|类名:WebInterface;<br>方法or属性:(value: WebOptions): WebAttribute;<br>新版本信息:crossplatform|web.d.ts|
28|跨平台能力有变化|类名:WebAttribute;<br>方法or属性:declare class WebAttribute<br>旧版本信息:|类名:WebAttribute;<br>方法or属性:declare class WebAttribute<br>新版本信息:crossplatform|web.d.ts|
29|跨平台能力有变化|类名:WebAttribute;<br>方法or属性:javaScriptAccess(javaScriptAccess: boolean): WebAttribute;<br>旧版本信息:|类名:WebAttribute;<br>方法or属性:javaScriptAccess(javaScriptAccess: boolean): WebAttribute;<br>新版本信息:crossplatform|web.d.ts|
30|跨平台能力有变化|类名:WebAttribute;<br>方法or属性:zoomAccess(zoomAccess: boolean): WebAttribute;<br>旧版本信息:|类名:WebAttribute;<br>方法or属性:zoomAccess(zoomAccess: boolean): WebAttribute;<br>新版本信息:crossplatform|web.d.ts|
31|跨平台能力有变化|类名:WebAttribute;<br>方法or属性:onPageEnd(callback: (event?: {<br>    /**<br>     * The url of page.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    url: string<br>  }) => void): WebAttribute;<br>旧版本信息:|类名:WebAttribute;<br>方法or属性:onPageEnd(callback: (event?: {<br>    /**<br>     * The url of page.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    url: string<br>  }) => void): WebAttribute;<br>新版本信息:crossplatform|web.d.ts|
32|跨平台能力有变化|类名:WebAttribute;<br>方法or属性:onPageBegin(callback: (event?: {<br>    /**<br>     * The url of page.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    url: string<br>  }) => void): WebAttribute;<br>旧版本信息:|类名:WebAttribute;<br>方法or属性:onPageBegin(callback: (event?: {<br>    /**<br>     * The url of page.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    url: string<br>  }) => void): WebAttribute;<br>新版本信息:crossplatform|web.d.ts|
33|跨平台能力有变化|类名:WebAttribute;<br>方法or属性:onErrorReceive(callback: (event?: {<br>    /**<br>     * The url of error event.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    request: WebResourceRequest,<br>    /**<br>     * The information of error event.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    error: WebResourceError<br>  }) => void): WebAttribute;<br>旧版本信息:|类名:WebAttribute;<br>方法or属性:onErrorReceive(callback: (event?: {<br>    /**<br>     * The url of error event.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    request: WebResourceRequest,<br>    /**<br>     * The information of error event.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    error: WebResourceError<br>  }) => void): WebAttribute;<br>新版本信息:crossplatform|web.d.ts|
34