dedecms 表单验证和验证码 一般表单都需要验证字段和防止恶意提交 1)验证字段: 找到项目根目录下的plus/diy.php,在59行有个if(!empty($dede_fields))这个判断里面就可以添加我们验证字段的代码了,示例: /*验证表单字段*/ if ($nickname == ...
分类:
其他好文 时间:
2018-02-27 21:25:00
阅读次数:
168
Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible stri ...
分类:
其他好文 时间:
2018-02-21 21:39:43
阅读次数:
152
1. 用一行输出所有大(小)写字母,以及数字 2. 生成随机验证码 ...
分类:
编程语言 时间:
2018-02-14 12:23:02
阅读次数:
241
JS 日期对象常用方法,数学对象常用方法,字符串对象常用方法 ...
分类:
Web程序 时间:
2018-02-12 22:58:38
阅读次数:
249
#-*-coding:utf-8-*-#7.18.1#强口令检测#写一个函数,使用正则表达式,确保传入的口令字符串是强口令#长度不少于8个字符,同时包含大小写,至少有1个数字importrepassd=input("Inputyourpassword:")ch_len=re.compile(r‘.{8,}‘)ch_uppercase=re.compile(r‘[A-Z]{1,}‘)ch_case=
分类:
编程语言 时间:
2018-02-09 15:42:39
阅读次数:
183
1.angular.bind(self, fn, args) 作用:返回一个新的函数,绑定这个函数的this指向self 参数:self:新函数的上下文对象 fn:需要绑定的函数 args:传递给函数的参数 返回值:this指向self的新函数 作用:返回一个新的函数,绑定这个函数的this指向se ...
分类:
Web程序 时间:
2018-02-04 22:52:30
阅读次数:
298
原题链接在这里:https://leetcode.com/problems/longest-repeating-character-replacement/description/ 题目: Given a string that consists of only uppercase English ...
分类:
其他好文 时间:
2018-02-04 11:08:28
阅读次数:
149
css常见属性 1.颜色属性 1.1 color属性定义文本的颜色 1.2 color:green 1.3 color:#ff6600 可简写为#f60 1.4 color:rgb(255,255,255) 1.5 color:rgba(255,255,255,1) a表示alpha色彩空间的透明度... ...
分类:
Web程序 时间:
2018-02-01 00:10:46
阅读次数:
234
public static String bytes2HexString(byte[] b) { String r = ""; for (int i = 0; i < b.length; i++) { String hex = Integer.toHexString(b[i] & 0xFF); if ...
分类:
其他好文 时间:
2018-01-31 14:20:23
阅读次数:
205
A. Eleven Eleven wants to choose a new name for herself. As a bunch of geeks, her friends suggested an algorithm to choose a name for her. Eleven want ...
分类:
其他好文 时间:
2018-01-31 00:51:40
阅读次数:
260