From 13943e6db88af03883f2d781eb1eca7fc84362f1 Mon Sep 17 00:00:00 2001 From: haoxiaohui Date: Sun, 28 Sep 2025 20:22:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A=E4=B8=BA?= =?UTF-8?q?=E8=8B=B1=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: haoxiaohui --- LoadPerformanceInWeb/entry/src/main/ets/pages/CaseOne.ets | 2 +- LoadPerformanceInWeb/entry/src/main/ets/pages/CaseThree.ets | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LoadPerformanceInWeb/entry/src/main/ets/pages/CaseOne.ets b/LoadPerformanceInWeb/entry/src/main/ets/pages/CaseOne.ets index d0bd21c6..84434601 100644 --- a/LoadPerformanceInWeb/entry/src/main/ets/pages/CaseOne.ets +++ b/LoadPerformanceInWeb/entry/src/main/ets/pages/CaseOne.ets @@ -10,7 +10,7 @@ export default class EntryAbility extends UIAbility { webview.WebviewController.initializeWebEngine(); // When pre-connecting, you need to replace' https://www.example.com' with the actual website address to visit // Specify that the second parameter is true, which means to pre-connect. If it is false, the interface will only pre-resolve the URL. - // 第三个参数numSockets,取值范围1-6,超过6按照6处理 + // The third parameter, numSockets, has a value range of 1-6. If it exceeds 6, the parameter will be treated as 6. webview.WebviewController.prepareForPageLoad('https://www.example.com/', true, 2); AppStorage.setOrCreate('abilityWant', want); console.log('EntryAbility onCreate done'); diff --git a/LoadPerformanceInWeb/entry/src/main/ets/pages/CaseThree.ets b/LoadPerformanceInWeb/entry/src/main/ets/pages/CaseThree.ets index ed05aa97..df431fd6 100644 --- a/LoadPerformanceInWeb/entry/src/main/ets/pages/CaseThree.ets +++ b/LoadPerformanceInWeb/entry/src/main/ets/pages/CaseThree.ets @@ -10,7 +10,7 @@ struct WebComponent { Web({ src: 'https://www.example.com/', controller: this.webviewController}) .onPageEnd(() => { // Pre-connected https://www.example1.com/ - // 第三个参数numSockets,取值范围1-6,超过6按照6处理 + // The third parameter, numSockets, has a value range of 1-6. If it exceeds 6, the parameter will be treated as 6. webview.WebviewController.prepareForPageLoad('https://www.example.com/', true, 2); }) } -- Gitee