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

!14759 【beta5】文档示例代码优化

Merge pull request !14759 from maoziduanl/cherry-pick-1676527457
...@@ -60,6 +60,7 @@ getResourceManager(callback: AsyncCallback<ResourceManager>): void ...@@ -60,6 +60,7 @@ getResourceManager(callback: AsyncCallback<ResourceManager>): void
}); });
}); });
``` ```
注:示例代码中的0x1000000表示资源对应的id, 其可在编译后的文件ResourceTable.txt中找到。
## resourceManager.getResourceManager ## resourceManager.getResourceManager
...@@ -116,6 +117,7 @@ getResourceManager(): Promise<ResourceManager> ...@@ -116,6 +117,7 @@ getResourceManager(): Promise<ResourceManager>
console.log("error is " + error); console.log("error is " + error);
}); });
``` ```
注:示例代码中的0x1000000表示资源对应的id, 其可在编译后的文件ResourceTable.txt中找到。
## resourceManager.getResourceManager ## resourceManager.getResourceManager
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册