上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页
摘要: let regex = /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,.\/]).{8,64}$/; let regex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9 阅读全文
posted @ 2022-04-18 13:20 逝年的我们 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 公网地址在页面内访问私有地址时会报错提示跨域一般处理办法 解决方案: 1:两种资源都改成https 2:做代理或改dns 两种资源都改成 内网或者外网ip 3:配置chrome选项为disable chrome://flags/#block-insecure-private-network-requ 阅读全文
posted @ 2022-03-08 13:26 逝年的我们 阅读(2147) 评论(0) 推荐(0) 编辑
摘要: SELECT * INTO `table2` FROM `table` WHERE 报错Undeclared variable 将其改为 CREATE TABLE table2 ( SELECT * FROM table WHERE 阅读全文
posted @ 2022-03-03 14:47 逝年的我们 阅读(651) 评论(0) 推荐(0) 编辑
摘要: 在window电脑上写的脚本放在linux上面执行一直报错时,如下面 syntax error near unexpected token `fi' 可以进行下面的操作: 用vim打开文件,在命令行模式下输入 :set ff如果显示fileformat=dos现在通过命令:set ff=unix设置 阅读全文
posted @ 2022-03-02 15:35 逝年的我们 阅读(498) 评论(0) 推荐(0) 编辑
摘要: Set是无序的如何取到第一个元素? 1、迭代 if(!set.isEmpty()){ System.out.println(set.iterator().next()); } 2、转换成list后通过索引取 List list = new ArrayList(set); System.out.pri 阅读全文
posted @ 2022-02-10 13:41 逝年的我们 阅读(792) 评论(0) 推荐(0) 编辑
摘要: 在Java的Set体系中,根据实现方式不同主要分为两大类。HashSet和TreeSet。 1、TreeSet 是二叉树实现的,Treeset中的数据是自动排好序的,不允许放入null值2、HashSet 是哈希表实现的,HashSet中的数据是无序的,可以放入null,但只能放入一个null,两者 阅读全文
posted @ 2022-02-10 11:16 逝年的我们 阅读(1238) 评论(0) 推荐(0) 编辑
摘要: 因为group by后取的一条数据默认是按主键id排序后的第一条,而且mysql查询语句是先执行group by再执行order by的。所以无法直接取 group by 后 创建时间最新的数据。 阅读全文
posted @ 2021-12-17 20:09 逝年的我们 阅读(104) 评论(0) 推荐(0) 编辑
摘要: title : { show:true,//显示策略,默认值true,可选为:true(显示) | false(隐藏) text: '主标题',//主标题文本,'\n'指定换行 link:'',//主标题文本超链接,默认值true target: null,//指定窗口打开主标题超链接,支持'sel 阅读全文
posted @ 2021-11-24 11:25 逝年的我们 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 在CentOS 7上实现密码复杂度策略设置,主要是使用PAM pwquality模块完成 1、备份原有配置文件 cp /etc/pam.d/system-auth /etc/pam.d/system-auth.bak 2、设置复杂度策略 vim /etc/pam.d/system-auth 找到包含 阅读全文
posted @ 2021-11-16 11:24 逝年的我们 阅读(2272) 评论(0) 推荐(0) 编辑
摘要: nginx -redirect隐藏http信息中location部分信息server { listen 80; server_name www.boke.com; location / { proxy_pass http://192.168.3.3:8080; proxy_redirect off; 阅读全文
posted @ 2021-11-15 18:03 逝年的我们 阅读(417) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页