提交 47058c87 编写于 作者: A asfasdff

api fix ip

Signed-off-by: Nasfasdff <zhangfei113@huawei.com>
上级 1af41329
...@@ -1247,7 +1247,9 @@ toJsonString():string; ...@@ -1247,7 +1247,9 @@ toJsonString():string;
let schema = new ddm.Schema(); let schema = new ddm.Schema();
const str = schema.toJsonString(); const str = schema.toJsonString();
console.log("schema: " + str); console.log("schema: " + str);
} catch (e) {} } catch (e) {
console.log("toJsonString " + e);
}
``` ```
...@@ -4162,7 +4164,7 @@ deleteBatch(keys: string[]): Promise&lt;void&gt;; ...@@ -4162,7 +4164,7 @@ deleteBatch(keys: string[]): Promise&lt;void&gt;;
console.log('deleteBatch fail ' + JSON.stringify(err)); console.log('deleteBatch fail ' + JSON.stringify(err));
}); });
}).catch((err) => { }).catch((err) => {
console.log('putBatch fail ' + JSON.stringify(err));; console.log('putBatch fail ' + JSON.stringify(err));
}); });
}catch(e) { }catch(e) {
console.log('DeleteBatch e ' + e); console.log('DeleteBatch e ' + e);
...@@ -4500,7 +4502,7 @@ enableSync(enabled: boolean, callback: AsyncCallback&lt;void&gt;): void; ...@@ -4500,7 +4502,7 @@ enableSync(enabled: boolean, callback: AsyncCallback&lt;void&gt;): void;
try { try {
kvStore.enableSync(true, function (err,data) { kvStore.enableSync(true, function (err,data) {
if (err == undefined) { if (err == undefined) {
console.log('enableSync success');; console.log('enableSync success');
} else { } else {
console.log('enableSync fail'); console.log('enableSync fail');
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册