未验证 提交 4260059d 编写于 作者: L longwei 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-zlib.md.

Signed-off-by: Nlongwei <longwei27@huawei.com>
上级 0af8723a
......@@ -160,7 +160,7 @@ let options = {
try {
zlib.compressFile(inFile, outFile, options, (errData) => {
if (erData !== null) {
if (errData !== null) {
console.log(`errData is errCode:${errData.errCode} message:${errData.message}`);
}
})
......@@ -257,7 +257,7 @@ let options = {
try {
zlib.decompressFile(inFile, outFile, options, (errData) => {
if (erData !== null) {
if (errData !== null) {
console.log(`errData is errCode:${errData.errCode} message:${errData.message}`);
}
})
......@@ -301,8 +301,8 @@ let options = {
};
try {
zlib.deCompressFile(inFile, outFile, options).then((data) => {
console.info('deCompressFile success');
zlib.decompressFile(inFile, outFile, options).then((data) => {
console.info('decompressFile success');
}).catch((errData) => {
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.
先完成此消息的编辑!
想要评论请 注册