摘要:
import java.util.ArrayList; import java.util.List; import static java.util.stream.Collectors.toList; public class Test { public static void main(Strin 阅读全文
摘要:
数据总览:下划线可以匹配单个字符,而%是匹配多个字符。例子 SELECT prod_id, prod_name FROM products WHERE prod_name LIKE '__ inch teddy bear'; 1 2 3 转载自:https://blog.csdn.net/the_n 阅读全文
摘要:
$(function(){ $('#btn').click(function(){ var val =$('#not_digit').val(); var patrn = /^[0-9]*$/; if (!patrn.test(val)) { alert('包含不是数字的字符'); } }); 阅读全文
摘要:
var d = new Date(); var curMonthDays = new Date(d.getFullYear(), (d.getMonth() + 1), 0).getDate(); alert("本月共有 " + curMonthDays + " 天"); d.getMonth()+ 阅读全文
摘要:
@NotEmpty 用在集合上面(不能注释枚举) @NotBlank用在String上面 @NotNull用在所有类型上面 1. @NotEmpty Asserts that the annotated string, collection, map or array is not {@code n 阅读全文