본문 바로가기
728x90
반응형

분류 전체보기712

[Javascript] 현재시간 및 시간차이 구하기 today = new Date(); var day = today.getDay(); var week; if (day == 0) week = "일요일" ; else if (day == 1) week = "월요일" ; else if (day == 2) week = "화요일" ; else if (day == 3) week = "수요일" ; else if (day == 4) week = "목요일" ; else if (day == 5) week = "금요일" ; else if (day == 6) week = "토요일" ; document.write("") document.write("년도: "+today.getYear()+" ") document.write("월: "+(today.getMonth()+1)+" ") .. 2017. 1. 28.
[Java] 휴대폰번호 유효성 검사 /** * * XXXX 형식의 휴대폰번호 앞, 중간, 뒤 문자열 3개 입력 받아 유효한 휴대폰번호형식인지 검사 * ex) * isVaildCell("010","123","4567"); * => true * * @param 휴대폰번호 문자열,(3개) * @return 유효한 휴대폰번호 형식인지 여부 (True/False) * @throws Exception */ public static boolean isVaildCell(String cell1, String cell2, String cell3) throws Exception { String[] check = {"010", "011", "016", "017", "018", "019"}; //유효한 휴대폰 첫자리 번호 데이터 String temp = cell.. 2017. 1. 28.
[JSP] JSTL 콤보박스 상태 ${codeModel.codeName} 2017. 1. 25.
[Java] 오늘날짜 어제날짜 가져오기 @ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 String strToday = searchDate; // 조회조건 : 상태 //오늘 if ((strToday == null) || (strToday.trim().equals("")) || (strToday.trim().equals("null"))) { strToday = (DateUtil.getTimeS.. 2017. 1. 25.
[Javascript] window.onload로 id에 강제값 window.onload = function () { document.getElementById("text_chk_cnt").value = 228; } 2017. 1. 22.
728x90
반응형