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

!14754 资源文档示例代码优化

Merge pull request !14754 from maoziduanl/master
...@@ -61,6 +61,7 @@ getResourceManager(callback: AsyncCallback<ResourceManager>): void ...@@ -61,6 +61,7 @@ getResourceManager(callback: AsyncCallback<ResourceManager>): void
}); });
}); });
``` ```
注:示例代码中的0x1000000表示资源对应的id, 其可在编译后的文件ResourceTable.txt中找到。
## resourceManager.getResourceManager ## resourceManager.getResourceManager
...@@ -117,6 +118,7 @@ getResourceManager(): Promise<ResourceManager> ...@@ -117,6 +118,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.
先完成此消息的编辑!
想要评论请 注册