我的github
上一页 1 ··· 220 221 222 223 224 225 226 227 228 ··· 338 下一页
摘要: 后台虽然返回的是json串,但是不是json对象,因此需要在后台加上header('Content-type: application/json'); https://blog.csdn.net/qq_44537414/article/details/100592885 阅读全文
posted @ 2021-09-24 14:42 XiaoNiuFeiTian 阅读(359) 评论(0) 推荐(0)
摘要: 直接使用axios时报错:[Vue warn]: Error in created hook: "TypeError: Cannot read properties of undefined (reading 'post')" https://blog.csdn.net/m0_56849931/ar 阅读全文
posted @ 2021-09-24 09:10 XiaoNiuFeiTian 阅读(381) 评论(0) 推荐(0)
摘要: 不能使用form-data,而是选择x-www-form-urlencoded 参考:https://blog.csdn.net/u010572493/article/details/81943485 https://www.bilibili.com/read/cv4343058/ 阅读全文
posted @ 2021-09-23 17:25 XiaoNiuFeiTian 阅读(682) 评论(0) 推荐(0)
摘要: 当进行新用户注册时,使用bcrypt进行加密,然后将结果保存到数据库中 当验证时,则需要进行compare校对 验证密码时,bcrypt.compare()始终返回false(bcrypt.compare() always returns false when verifying passwords 阅读全文
posted @ 2021-09-23 16:51 XiaoNiuFeiTian 阅读(59) 评论(0) 推荐(0)
摘要: mongoose默认会将model的名字转换为复数形式作为对应collection的名称:链接 阅读全文
posted @ 2021-09-23 16:44 XiaoNiuFeiTian 阅读(199) 评论(0) 推荐(1)
摘要: Mongodb是Schema free的。。 那么如何定义约束呢?不让表太自由 mongodb 的 schema 设计方法:https://blog.csdn.net/weixin_34123613/article/details/89390489 阅读全文
posted @ 2021-09-23 16:14 XiaoNiuFeiTian 阅读(316) 评论(0) 推荐(0)
摘要: Moogoose入门教程:https://blog.csdn.net/weixin_45828332/article/details/114120710 countDocuments(query)函数的使用: https://www.nuomiphp.com/eplan/2759.html 如果要全 阅读全文
posted @ 2021-09-23 15:25 XiaoNiuFeiTian 阅读(349) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2021-09-23 13:54 XiaoNiuFeiTian 阅读(109) 评论(0) 推荐(0)
摘要: 案例1:https://www.cnblogs.com/angelasp/p/12159902.html(vue-element-admin) 前端技术不变,只是后台从mysql换成mongodb+nodejs 下载: vue-element-admin+nodejs+mongodb:https:/ 阅读全文
posted @ 2021-09-23 11:38 XiaoNiuFeiTian 阅读(170) 评论(0) 推荐(0)
摘要: 很多人连接后发现没有数据库列表:https://blog.csdn.net/qq_37700575/article/details/90601809(点击查看->显示隐藏的项目) Navicat新建MongoDB数据库,是灰色的:新建一个集合,就会变成实体黑了 可能一开始创建数据库时,是在内存中的, 阅读全文
posted @ 2021-09-23 11:05 XiaoNiuFeiTian 阅读(1325) 评论(0) 推荐(0)
上一页 1 ··· 220 221 222 223 224 225 226 227 228 ··· 338 下一页