Web开发,少不了的就是压力测试,它是评估一个产品是否合格上线的基本标准。 ab是一种用于测试Apache超文本传输协议(HTTP)服务器的工具。apache自带ab工具,可以测试Apache、IIS、Tomcat、Nginx等Web服务器...
未分类
mysql 中 select sum()返回null处理
SUM 是SQL语句中的标准求和函数,如果没有符合条件的记录,那么SUM函数会返回NULL。 很多时候返回NULL,对于代码处理会出现问题 解决方案:SELECT COALESCE(SUM(name),0) FROM person WHERE id > 0 ...
sql 查询每天数据
date 为时间字段名 account_record为表名where条件为查询当月数据的条件 SELECT SUBSTRING(date,1,10) as day, COUNT(date) as num FROM `account_record` WHERE SUBSTRING(date,1,7)=SUBSTRING('20...
MySQL查询当天当月数据
今天 select * from 表名 where to_days(时间字段名) = to_days(now()); 昨天 SELECT * FROM 表名 WHERE TO_DAYS( NOW( ) ) - TO_DAYS( 时间字段名) <= 1 近7天 SELECT * FROM 表名 where DAT...
js中的数组拷贝(浅拷贝,深拷贝)
今天写代码时需要拷贝一个内容会变化的数组,使用了=赋值,slice(),concat()方法都不行,修改了原数组后拷贝数组也变了,原因是这个数组内容是object,而object是引用类型,需要使用深拷贝,最后使用var newArr...
js判断变量是否为 undefine,是否 null,
if(!!uni.getStorageSync("userInfo").openId){ console.log("有值") }else{ console.log("没有值") } !!写法,可以同时判断是否为undefine和null
git 常用命令
以新项目为类1、终端状态下输入申明git git init 2、添加远端仓库 git remote add origin http://…….…….…… 3、将远端分支next合并到本地分支master&强制推送本地的master分支 git pull origi...
抖音变现方法
考拉海购抖音小游戏中视频伙伴计划猫眼电影小程序团购大人热点爆料
Nginx配置https
user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.t...
charles开启Charles-Proxy-macOS Proxy 时报错
Charles cannot configure your proxy settings while it is on a read-only volume. Perhaps you are running Charles from the disk image? If so, please copy Charles to the Applications folder and run i...