中国优质的IT技术网站
专业IT技术创作平台
IT职业在线教育平台
如何向键值型数据库中插入数据?
微信扫码分享
try { kvStore.put("name", "张三", (err) => { if (err !== undefined) { console.error(`Failed to put data. Code:${err.code},message:${err.message}`); return; } console.info('Succeeded in putting data.'); }); } catch (e) { let error = e as BusinessError; console.error(`An unexpected error occurred. Code:${error.code},message:${error.message}`); }