From 681136bc86c1fc618830b73d8b0ecf3e401a0f33 Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Tue, 14 Feb 2023 13:39:18 +0800 Subject: [PATCH] Update doc (13976) Signed-off-by: ester.zhou --- .../arkui-ts/ts-universal-attributes-component-id.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md index 079220c606..72c361558b 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md @@ -39,7 +39,7 @@ This API is used only for test purposes. ### getInspectorTree9+ -getInspectorTree(): string +getInspectorTree(): Object Obtains the component tree and component attributes. @@ -49,7 +49,7 @@ This API is used only for test purposes. | Type | Description | | ------ | --------------------------- | -| string | JSON string of the component tree and component attribute list.| +| Object | JSON object of the component tree and component attribute list.| ### sendEventByKey9+ @@ -181,7 +181,7 @@ struct IdExample { }.margin({ top: 20 }) .onClick(() => { console.info(getInspectorByKey("click")) - console.info(getInspectorTree()) + console.info(JSON.stringify(getInspectorTree())) this.text = "Button 'click to start' is clicked" setTimeout(() => { sendEventByKey("longClick", 11, "") // Send a long-click event to the component whose ID is "longClick". -- GitLab