angular内置了一套表单校验,其中包含几个状态 ① valid、invalid、pristine和dirty valid标记表单元素有效; invalid标记表单元素无效; pristine表示表单元素是纯净的,用户未操作过; dirty表示表单元素是已被用户操作过; ② 更改css属性 .ng ...
分类:
其他好文 时间:
2017-09-27 13:08:21
阅读次数:
162
思路: 首尾指针一起走,如果遇到非0-9,a-z,A-Z直接跳过去 判定是否相等,直接减去65,也就是ascii码A对应的那个值,如果是非负数则判定为是字母,进行字母的处理,如果是负数,不进行处理,这个时候已经将其判定为是数字,以上操作将65作为坐标原点将数字(左边)和字母(右边)进行了切分。 本来 ...
分类:
其他好文 时间:
2017-09-27 00:45:50
阅读次数:
138
java.lang.Long is not a valid external type for schema of string java.lang.RuntimeException: Error while encoding: java.lang.RuntimeException: java.la ...
分类:
其他好文 时间:
2017-09-26 23:30:15
阅读次数:
235
location ~* \.(gif|jpg|png|jpeg)$ { root /home/soft; valid_referers *.qinyj.top download.qinyj.top; if ($invalid_referer) { rewrite ^/ http://download ...
分类:
其他好文 时间:
2017-09-25 11:52:16
阅读次数:
114
680. Valid Palindrome II【easy】 Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1 ...
分类:
其他好文 时间:
2017-09-23 18:51:12
阅读次数:
201
125. Valid Palindrome【easy】 Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, ...
分类:
其他好文 时间:
2017-09-23 16:15:52
阅读次数:
137
public class Solution { public boolean isValidSudoku(char[][] board) { boolean[][][] used=new boolean[3][9][9]; for(int i=0;i<9;i++) for(int j=0;j<9;j... ...
分类:
其他好文 时间:
2017-09-23 14:31:06
阅读次数:
140
mavn 编译报错: mavn sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unab ...
分类:
其他好文 时间:
2017-09-23 13:42:24
阅读次数:
824
class Solution { public int longestValidParentheses(String s) { int left=-1; Stack stack=new Stack(); int ret=0; for(int i=0;i<s.length();i++) { ... ...
分类:
其他好文 时间:
2017-09-23 13:41:19
阅读次数:
206
1: @Valid 注解 @NotNull(message="名字不能为空") private String userName; @Max(value=120,message="年龄最大不能查过120") private int age; @Email(message="邮箱格式错误") priva ...
分类:
编程语言 时间:
2017-09-23 00:01:30
阅读次数:
219