摘要: 初识nest 阅读全文
posted @ 2020-09-08 15:29 尾野 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 一、模型关联 1.一对多/多对多 在一中关联多中的字段,type为 mongoose.Schema.Types.ObjectId ,并关联关联模型的名称。 1 const Categoryschema = new mongoose.Schema({ 2 name: { type: String }, 阅读全文
posted @ 2020-07-28 22:43 尾野 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 不听话的插件删掉就好啦 阅读全文
posted @ 2020-07-08 18:41 尾野 阅读(895) 评论(0) 推荐(0) 编辑
摘要: // example @selectors: blue, green, red; each(@selectors, { .sel-@{value} { a: b; } }) // outputs .sel-blue { a: b; } .sel-green { a: b; } .sel-red { 阅读全文
posted @ 2020-07-06 18:23 尾野 阅读(1924) 评论(0) 推荐(0) 编辑
摘要: bcrypt密码加密 jsonwebtoken获取token 阅读全文
posted @ 2020-07-04 21:44 尾野 阅读(203) 评论(0) 推荐(0) 编辑
摘要: module.exports = app => { const path = require('path') const multer = require('multer') const upload = multer({ dest: path.join(__dirname, 'uploads') 阅读全文
posted @ 2020-07-03 21:15 尾野 阅读(1131) 评论(0) 推荐(0) 编辑
摘要: 数据库增删改查的通用接口,命名需要严格按照标准,数据库大写单数,请求路径小写复数 阅读全文
posted @ 2020-07-03 20:49 尾野 阅读(440) 评论(0) 推荐(0) 编辑
摘要: offset- client- scroll- 阅读全文
posted @ 2020-04-23 15:55 尾野 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 流式布局(百分比布局) flex弹性布局 less+rem+媒体查询布局 bootstrap 混合布局 响应式页面兼容移动端 媒体查询 bootstarp 阅读全文
posted @ 2020-04-12 23:17 尾野 阅读(415) 评论(0) 推荐(0) 编辑