会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
12day
博客园
首页
新随笔
联系
订阅
管理
2022年3月15日
云开发cloudbase怎么实现单字段、多字段模糊查询
摘要: 1. 单字段模糊查询 const res = await db.collection("table").limit(query.limit = 10).where({ name:{ $regx:'.*'+query.name, $options:'i' } }).skip(((query.page
阅读全文
posted @ 2022-03-15 11:18 12day
阅读(206)
评论(0)
推荐(0)
2022年3月14日
如何在nest.js中通过正则表达式正确设置验证
摘要: import { IsNotEmpty, Length, Matches, Max, Min } from "class-validator"; const phoneReg = /^1(3\d|4[5-9]|5[0-35-9]|6[567]|7[0-8]|8\d|9[0-35-9])\d{8}$/
阅读全文
posted @ 2022-03-14 10:55 12day
阅读(92)
评论(0)
推荐(0)
2022年3月10日
用webstorm调试Nest.js同类ts项目同理
摘要: 需要依赖 node.js typescript ts-node 安装全局依赖 yarn global add typescript ts-node -D 或者只到安装本项目 yarn add typescript ts-node -D 配置步骤 点击应用-》确定就完成了
阅读全文
posted @ 2022-03-10 10:10 12day
阅读(783)
评论(3)
推荐(0)
2022年2月17日
解决elementPlus在QQ浏览器端 globalThis is not defined 报错
摘要: 在html头部加上如下代码: <script> this.globalThis || (this.globalThis = this) </script>
阅读全文
posted @ 2022-02-17 15:45 12day
阅读(760)
评论(0)
推荐(0)