提交 dda7fd2a 编写于 作者: Z zengyawen

fixed cae84be4 from https://gitee.com/zengyawen/docs/pulls/14494

update zh-cn/application-dev/reference/apis/js-apis-file-hash.md.
Signed-off-by: Nzengyawen <zengyawen1@huawei.com>
上级 58e1fb68
......@@ -92,6 +92,7 @@ hash(path: string, algorithm: string, callback: AsyncCallback&lt;string&gt;): vo
**示例:**
```js
let filePath = pathDir + "/test.txt";
Hash.hash(filePath, "sha256", (err, str) => {
if (err) {
console.info("calculate file hash failed with error message: " + err.message + ", error code: " + err.code);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册