2022年3月15日
摘要: 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日
摘要: 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日
摘要: 需要依赖 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日
摘要: 在html头部加上如下代码: <script> this.globalThis || (this.globalThis = this) </script> 阅读全文
posted @ 2022-02-17 15:45 12day 阅读(760) 评论(0) 推荐(0)