[JAVASCRIPT] 파라미터 URL 받기
https://aamoos.tistory.com?gubn=gubn&target=target gubn -> gubn target -> target
- frontend/자바스크립트
- · 2019. 2. 12.
1.root 계정으로 로그인합니다. 2.(rdate)가 설치되어있지 않을경우 -> yum -y install rdate 명령어를 작성하여 rdate패키지를 설치합니다. (rdate)가 설치되어있을 경우 rdate -s time.bora.net 3.명령어창에 date를 입력하여 현재 시간이 맞는지 확인
url : http://localhost:8080/myFriends?gubn=test request.getParameter @RequestMapping(value = "/myFriends") public String myFriendsList( HttpServletRequest req, Model model ){ String gubn = req.getParameter("gubn"); System.out.println(gubn); return "MyFriends"; } test @requestParam @RequestMapping(value = "/myFriends") public String myFriendsList( @RequestParam String gubn, Model model){ System.o..
https://aamoos.tistory.com?gubn=gubn&target=target gubn -> gubn target -> target
StringBuilder newIdName = new StringBuilder("TISTORY"); newIdName.setCharAt(3, '*'); newIdName.setCharAt(4, '*'); newIdName.setCharAt(5, '*'); System.out.println(newIdName ); 결과값 : TIS***Y
$(document).ready(function(){ if(!chkPwd($.trim($(".newPassword").val()))){ alert("비밀번호는 영문,숫자,특수문자 포함 8~12글자 이상 입니다."); return false; } }); function chkPwd(str){ var reg_pwd = /^.*(?=.)(?=.*[0-9])(?=.*[a-zA-Z]).*$/; if(!reg_pwd.test(str)){ return false; } return true; }