04 2020 档案
摘要:英文姓名由字母和空格组成 比如:Jack、Jack Chan、Donald Trump 每个单词的第一个字母都是大写 正则表达式如下: /^[A-Z][a-z]*(\s[A-Z][a-z]*)*$/ 如果不要校验大小写: /^[A-Za-z]*(\s[A-Za-z]*)*$/ 实际应用: var n
阅读全文
摘要:可以使用form表单的onsubmit方法,在提交表单之前,对表单或者网页中的数据进行检验。 onsubmit指定的方法返回true,则提交数据;返回false不提交数据。 <HTML> <head> <meta http-equiv="Content-Type" content="text/htm
阅读全文
摘要:https://blog.csdn.net/r657225738/article/details/100773136
阅读全文
摘要:Laravel 出现"RuntimeException inEncrypter.php line 43: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths."问题的解决办法首
阅读全文
摘要:const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch({ executablePath: './chromium/chrome.exe', headless: fal
阅读全文
摘要:基本格式 //条件?真结果:假结果 var test = a>0?a:-a 对应if...else语句 if (条件) {真结果} else {假结果} if(a>0){ x = a }else{ x= -a } 三元表达式嵌套 //条件1?真结果1:(条件2?真结果2:(条件3:真结果3?假结果3
阅读全文
摘要:select gid, username from users where FIND_IN_SET(8,gid); //查询gid里含有数字8的记录,gid是varchar ,数据格式:"1,12,8,18,5" select gid, username from users where !FIND
阅读全文
posted @ 2020-04-06 15:33
Ai~低调
摘要:使用date -d 选项: date +"%Y%m%d" -d "+n days" 今天的后n天日期 date +"%Y%m%d" -d "-n days" 今天的前n天日期 比如: [root@localhost riqi]# date +"%Y-%m-%d %H:%M:%S" 2012-07-1
阅读全文

浙公网安备 33010602011771号