摘要: 1 public class Test { 2 public static void main(String[] args) { 3 String str="135axy"; 4 String regEx="[0-9]{1,3}[a-z]{2,3}"; 5 boolean m=str.matches 阅读全文
posted @ 2017-03-17 19:51 xiongjiawei 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1 String date="${__javaScript((new Date()).getFullYear()+'-'+((new Date()).getMonth()+1)+'-'+(new Date()).getDate(),)}"; 2 log.info("获取当前日期:"+date); 3 阅读全文
posted @ 2017-03-17 16:08 xiongjiawei 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 如题 阅读全文
posted @ 2017-03-17 13:28 xiongjiawei 阅读(590) 评论(0) 推荐(0) 编辑
摘要: 1 @echo off 2 set sum=0 3 call :sub sum 1 2 3 4 4 echo sum=%sum% 5 pause 6 7 :sub 8 set /a %1=%1+%2 9 shift /2 10 if not "%2"=="" goto sub 11 goto :eo 阅读全文
posted @ 2017-03-17 11:28 xiongjiawei 阅读(979) 评论(0) 推荐(0) 编辑
摘要: echo. 阅读全文
posted @ 2017-03-17 10:39 xiongjiawei 阅读(1329) 评论(0) 推荐(0) 编辑
摘要: 1 @echo off 2 set /p str=请输入任意长度字符串: 3 if not defined str goto :eof 4 echo 您输入了:%str% 5 set num=0 6 :label 7 set /a num+=1 8 set str=%str:~0,-1% 9 if 阅读全文
posted @ 2017-03-17 09:35 xiongjiawei 阅读(5719) 评论(0) 推荐(0) 编辑