This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------- V2Ray 配置信息 ------------- | |
地址 (Address) = 8.210.115.48 | |
端口 (Port) = 8888 | |
用户ID (User ID / UUID) = af90dd2d-604b-4cb6-a091-23207a7f0d70 | |
额外ID (Alter Id) = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(?=.*[a-z]) | |
这表示一个环视的语法,表示当前位置的后面没有换行且匹配一个字母(从a到z中的一个) | |
(?=exp) 是肯定顺序环视,环视不占位,可以当成是一种条件判定,满足才能匹配 | |
.* .表示匹配除了换行的任意字符,*是量词,表示0~n个,结合起来就是0~n个除了换行符的任意字符 | |
[a-z] 表示从a到z的集合里匹配一个字母,因为[a-z]后面没加量词,因此默认是一个。 | |
保证序列号由10-20位组成,并同时包含字母和数字,可以包含-,两种正则写法: | |
/^[a-zA-Z0-9-]{10,20}(?<=[a-zA-Z].*)(?<=[0-9].*)$/g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener('beforeunload', function (event) { | |
$.post("kk/jk",{kl:"123"},function(e){ | |
},'json') | |
console.log("onbeforeunload is work"); | |
//阻塞5秒可以直接看到效果,最好是阻塞50-100毫秒,这样在不影响用户感官的同时保证异步请求能被触发 | |
now = Date.now() | |
while (new Date() - now < 5000) { } | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public * com.logicz.pojo.*.*(..) | |
修饰符 返回值 包名.类名/接口名 方法 (参数) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux下对于新添加的用户,用户密码过期时间是从/etc/login.defs中PASS_MAX_DAYS提取的,普通系统默认就是99999,而有些安全操作系统是90。更改此处,只是让新建的用户默认密码过期时间变化,已有用户密码过期时间仍然不变。 | |
[root@linux ~]# chage --help | |
Usage: chage [options] user | |
Options: | |
-d, --lastday LAST_DAY set last password change to LAST_DAY | |
-E, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE | |
-h, --help display this help message and exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 查看进程; | |
ps -ef | grep emp-client | |
# 查杀进程; | |
kill -9 进程的pid | |
#进webapps目录将服务包删除; | |
rm -rf 文件名称 或者文件夹名称 | |
#上传工程包; | |
rz 回车 | |
#回到bin目录, 启动服务; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql支持的utf-8编码默认的是utf8mb3,但是它很多字符例如表情Emoji是没有编码的,因此会在传输到前台时显示为乱码,因此需要更改为utf8mb4的编码格式,具体原文如下: | |
首先,想要把字符集从utf8mb3转换到utf8mb4,其实是问题不大的: | |
对于BMP字符,utf8mb4和utf8mb3具有相同的存储特征:相同的编码值,相同的编码,相同的长度。 | |
对于补充字符,utf8mb4需要4个字节来存储它,而utf8mb3根本不能存储该字符。当将utf8mb3列转换为utf8mb4时,您不必担心转换补充字符,因为没有补充字符。 | |
假设有一张已知表使用了utf8mb3: | |
CREATE TABLE t1 ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
下面是javascript的encode函数: | |
1.escape - 采用ISO Latin字符集对指定的字符串进行编码。不会被此方法编码的字符: @ * / + | |
2.encodeURI - 把URI字符串采用UTF-8编码格式转化成escape格式的字符串不会被此方法编码的字符:! @ # $& * ( ) = : / ; ? + ‘ | |
3.encodeURIComponent - 把URI字符串采用UTF-8编码格式转化成escape格式的字符串。不会被此方法编码的字符:! * ( ) ‘ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ | |
rm -rf node_modules | |
rm package-lock.json | |
npm cache clear --force | |
npm install | |
最后实在还是不行,则使用cnpm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
createInput(name, value) { | |
let inputElement = document.createElement("input"); | |
inputElement.type = "hidden"; | |
inputElement.name = name; | |
if (value != null) { | |
inputElement.value = value; | |
} | |
return inputElement; | |
} | |
// 创建表单 |
OlderNewer