From 110d8ea1eedf93c794958de2be477a91352dcd47 Mon Sep 17 00:00:00 2001 From: pplokijuhyg <1162963624@qq.com> Date: Tue, 12 Nov 2019 23:37:56 +0800 Subject: [PATCH] mongodb --- description/mongodb.js.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 description/mongodb.js.md diff --git a/description/mongodb.js.md b/description/mongodb.js.md new file mode 100644 index 0000000..68f82f9 --- /dev/null +++ b/description/mongodb.js.md @@ -0,0 +1,11 @@ +#mongodb.js说明 +- 引入 + - dbs = require("dir/mongodb.js") +- 使用 + - add + ``` + 参数('操作的集合名',数据集 {}[,{mongodburl,dbname}]) + 返回值类型 promise + 成功返回 {code:0}, + 失败返回 {code:1} + ```