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

!11471 【轻量级 PR】:update zh-cn/application-dev/reference/apis/js-apis-zlib.md.

Merge pull request !11471 from longwei/N/A
...@@ -160,7 +160,7 @@ let options = { ...@@ -160,7 +160,7 @@ let options = {
try { try {
zlib.compressFile(inFile, outFile, options, (errData) => { zlib.compressFile(inFile, outFile, options, (errData) => {
if (erData !== null) { if (errData !== null) {
console.log(`errData is errCode:${errData.errCode} message:${errData.message}`); console.log(`errData is errCode:${errData.errCode} message:${errData.message}`);
} }
}) })
...@@ -257,7 +257,7 @@ let options = { ...@@ -257,7 +257,7 @@ let options = {
try { try {
zlib.decompressFile(inFile, outFile, options, (errData) => { zlib.decompressFile(inFile, outFile, options, (errData) => {
if (erData !== null) { if (errData !== null) {
console.log(`errData is errCode:${errData.errCode} message:${errData.message}`); console.log(`errData is errCode:${errData.errCode} message:${errData.message}`);
} }
}) })
...@@ -301,8 +301,8 @@ let options = { ...@@ -301,8 +301,8 @@ let options = {
}; };
try { try {
zlib.deCompressFile(inFile, outFile, options).then((data) => { zlib.decompressFile(inFile, outFile, options).then((data) => {
console.info('deCompressFile success'); console.info('decompressFile success');
}).catch((errData) => { }).catch((errData) => {
console.log(`errData is errCode:${errData.errCode} message:${errData.message}`); console.log(`errData is errCode:${errData.errCode} message:${errData.message}`);
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册