摘要: 模糊查询要用到 $or 和 $regex 前端请求: search(){ let searchV=$.trim($("#searchV").val()); if(searchV.length<1){ alert("请输入关键字进行搜索"); return; } $.ajax({ url:"http: 阅读全文
posted @ 2020-06-08 15:42 山吹同学 阅读(3196) 评论(0) 推荐(0) 编辑
摘要: 参考:https://mongoosejs.com/docs/api.html#schema_Schema-add 详情请查看这个网址 const mongoose=require("./dbConn.js") const Schema=mongoose.Schema; // 这是添加的属性 con 阅读全文
posted @ 2020-06-08 10:32 山吹同学 阅读(619) 评论(0) 推荐(0) 编辑