摘要:
批量更新 db.DIC_DrugInventory.find({"DrugGenericName":null}).forEach(function(item){ db.DIC_DrugInventory.update({"_id":item._id}, {"$set":{"DrugGenericNa 阅读全文
摘要:
获取当月第一天 select CONVERT(nvarchar(50),DateAdd(dd,-datePart(day,GetDate())+1,GETDATE()),23) 2022-08-01 SELECT DATEADD(mm, DATEDIFF(mm,0,getdate()), 0) 20 阅读全文

摘要:
//今天 select * from 表名 where to_days(时间字段名) = to_days(now()); //昨天 SELECT * FROM 表名 WHERE TO_DAYS( NOW( ) ) - TO_DAYS( 时间字段名) <= 1 //近7天 SELECT * FROM 阅读全文
摘要:
解决办法 只需要在图片地址前面加一个前缀:'https://images.weserv.nl/?url='+ 阅读全文
摘要:
找到代码 import fs,{constants as fsConstants} from 'node:fs/promises'; 修改代码 import fs from 'node:fs/promises'; import {constants as fsConstants} from 'nod 阅读全文
摘要:
Windows Server 2012 R2 安装软件时提示该错误,需下载KB2919355 KB2919355下载 若下载后安装出现报错,说此更新不适用于你的计算机 则是需要下载先安装Windows更新程序(KB2919442) KB2919442下载 下载安装以后再安装KB2919355即可 阅读全文
摘要:
常用的话都不需要额外打开网页,只需把地址加到下载链接前面即可。 https://ghproxy.cc/ 阅读全文
摘要:
引入JS <script src="https://cdn.jsdelivr.net/npm/taffydb/taffy-min.js"></script> 使用 //创建一个数据库 var friends = TAFFY([ {"id":1,"gender":"M","first":"John", 阅读全文
摘要:
C#中计算double a=1/1000;应该结果是0.001,但为什么会变成0呢? C# 中 如果相除的两个数都是整数(int 型) 那么除的结果就是只取整数部分 所以你才会取到0 如果你要取精确的值 那么相除的两个数中其中一个必须不为纯整数 double a=1/1000 要么变成double 阅读全文
摘要:
一个使用了Webpack的老项目,最近在build时,报出如下错误: Module build failed: ModuleBuildError: Module build failed: Error: No PostCSS Config found in: .... 大致意思就是没有postcss 阅读全文
摘要:
1. random随机模块 返回两数之间的随机数,不包括尾数:random.randrange() import random print(random.randrange(1,10)) # 3 返回两数之间的随机数,包括尾数: random.randint() import random prin 阅读全文