From 9973592f8bcbbc0880f8954b61a631bc8957227f Mon Sep 17 00:00:00 2001 From: Haoming Luo Date: Fri, 28 Jul 2023 10:49:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9Log=E5=86=85=E5=AE=B9:getStri?= =?UTF-8?q?ngByName=E6=94=B9=E4=B8=BAgetStringValue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Haoming Luo --- zh-cn/application-dev/quick-start/in-app-hsp.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/quick-start/in-app-hsp.md b/zh-cn/application-dev/quick-start/in-app-hsp.md index 7abaf5d113..bf3474ddca 100644 --- a/zh-cn/application-dev/quick-start/in-app-hsp.md +++ b/zh-cn/application-dev/quick-start/in-app-hsp.md @@ -162,10 +162,10 @@ struct Index { // 先通过当前上下文获取hsp模块的上下文,再获取hsp模块的resourceManager,然后再调用resourceManager的接口获取资源 getContext().createModuleContext('library').resourceManager.getStringValue(ResManager.getDesc()) .then(value => { - console.log("getStringByName value is " + value); + console.log("getStringValue is " + value); }) .catch(error => { - console.log("getStringByName promise error is " + error); + console.log("getStringValue promise error is " + error); }); }) .width("50%") -- GitLab