未验证 提交 485f4849 编写于 作者: O openharmony_ci 提交者: Gitee

!14646 翻译完成 13976:getInspectorTree接口返回值修改为Object

Merge pull request !14646 from ester.zhou/TR-13976
......@@ -39,7 +39,7 @@ This API is used only for test purposes.
### getInspectorTree<sup>9+</sup>
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.|
### sendEventByKey<sup>9+</sup>
......@@ -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".
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册