diff --git a/zh-cn/application-dev/reference/apis/js-apis-componentUtils.md b/zh-cn/application-dev/reference/apis/js-apis-componentUtils.md index e4a1d5282bd3a56053f4a354768796dd69b78c6c..62f58c3d7b8b52cc81e64f8cdc5fa6c5a5a4cdb0 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-componentUtils.md +++ b/zh-cn/application-dev/reference/apis/js-apis-componentUtils.md @@ -127,7 +127,7 @@ import componentUtils from '@ohos.componentUtils'; @Entry @Component struct Utils{ - static getComponentRect(key) { + private getComponentRect(key) { console.info("Mode Key: " + key); let modePosition = componentUtils.getRectangleById(key); @@ -202,7 +202,7 @@ struct Utils{ Text('getRectangleById').fontSize(40).fontWeight(FontWeight.Bold); }.margin({ top: 20 }) .onClick(() => { - Utils.getComponentRect("image_01"); + this.getComponentRect("image_01"); }).id('onClick'); } }