不灭的火

革命尚未成功,同志仍须努力下载JDK17

作者:AlbertWen  添加时间:2020-08-01 23:01:41  修改时间:2025-06-20 18:26:41  分类:06.前端/Vue/Node.js  编辑

高度自适应方法 layer.iframeAuto(index) 能自适应增加iframe弹框高度,却不能自适应减少高度,查看github库开源代码:

https://github.com/sentsin/layer/blob/master/src/layer.js

// iframe层自适应宽高
layer.iframeAuto = function(index) {
    if (!index) return;
    var heg = layer.getChildFrame('html', index).outerHeight(); // 改用 'body'元素高度
    var layero = $('#'+ doms[0] + index);
    ......
    ......
}
作者:AlbertWen  添加时间:2020-07-31 14:34:11  修改时间:2025-06-25 11:28:40  分类:MySQL/Redis  编辑

utf8与utf8mb4(utf8 most bytes 4)

  • MySQL 5.5.3 之后增加了utfmb4字符编码
  • 支持BMP(Basic Multilingual Plane,基本多文种平面)和补充字符
  • 最多使用四个字节存储字符
作者:AlbertWen  添加时间:2020-07-30 23:45:57  修改时间:2025-06-17 19:12:23  分类:MySQL/Redis  编辑

在MySQL的存储过程中经常会看到这句话:DECLARE CONTINUE HANDLER FOR NOT FOUND

它的含义是:若没有数据返回,程序继续,并将变量 IS_FOUND 设为 0 ,这种情况是出现在类似:select XX into XXX from tablename 的时候发生的。

作者:AlbertWen  添加时间:2020-07-30 16:21:36  修改时间:2025-06-25 23:49:42  分类:杂七杂八  编辑

AxureUX:专业的交互原型素材原创分享平台

Axhub:Axure 原型托管与协作平台

作者:AlbertWen  添加时间:2020-07-30 11:29:17  修改时间:2025-06-28 21:39:24  分类:MySQL/Redis  编辑

MySQL四舍五入函数:

  • round(x) 函数:返回最接近于参数 x 的整数;
  • round(x, y) 函数:对参数x进行四舍五入的操作,返回值保留小数点后面指定的y位。
作者:AlbertWen  添加时间:2020-07-30 11:22:12  修改时间:2025-06-30 14:01:55  分类:MySQL/Redis  编辑

在MySQL中进行模糊查询的时候可以使用 instr() 函数。

instr()函数介绍

instr(s, s1),这个函数返回字符串s1在字符串s中的位置,若是找不到则返回0,找到则返回字符串s1所在位置。(返回位置从1开始)

instr()函数使用

SELECT * FROM user WHERE INSTR(username,'2')>0
作者:AlbertWen  添加时间:2020-07-28 23:19:37  修改时间:2025-06-25 08:58:58  分类:06.Linux软件安装  编辑

CentOS 7.8 编译安装 MySQL 5.6.49 成功后,执行“初始化数据库”命令行时,报错:

error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

作者:AlbertWen  添加时间:2020-07-28 00:49:02  修改时间:2025-06-25 23:13:21  分类:06.Linux软件安装  编辑

查询、开放、关闭端口

# 查询端口是否开放
firewall-cmd --query-port=8080/tcp

# 开放80端口
firewall-cmd --permanent --add-port=80/tcp

# 移除端口
firewall-cmd --permanent --remove-port=8080/tcp


# 重启防火墙(修改配置后要重启防火墙)
firewall-cmd --reload

# 参数解释
1、firwall-cmd:是Linux提供的操作firewall的一个工具;
2、--permanent:表示设置为持久;
3、--add-port:标识添加的端口;
作者:AlbertWen  添加时间:2020-07-27 23:49:33  修改时间:2025-06-21 09:50:09  分类:电脑/软件使用  编辑

物理机:Win10,虚拟机:CentOS7.8,VirtualBox设置共享文件夹

作者:AlbertWen  添加时间:2020-07-27 18:15:41  修改时间:2025-06-19 18:35:53  分类:电脑/软件使用  编辑
  • nginx -s stop     fast shutdown
  • nginx -s quit     graceful shutdown
  • nginx -s reload     changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes
  • nginx -s reopen     re-opening log files