diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md
index 12c17eea62759530d4fa7881293319b9e91100b3..f56a0c97957064edf50c2f702a1a2f3bbea8c3a9 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-component-id.md
@@ -39,7 +39,7 @@ getInspectorByKey(id: string): string
### getInspectorTree9+
-getInspectorTree(): string
+getInspectorTree(): Object
获取组件树及组件属性。
@@ -49,7 +49,7 @@ getInspectorTree(): string
| 类型 | 描述 |
| ------ | --------------------------- |
-| string | 组件树及组件属性列表的JSON字符串。 |
+| Object | 组件树及组件属性列表的JSON对象。 |
### 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, "") // 向id为"longClick"的组件发送长按事件