728x90 반응형 Developer/Javascript & jQuery104 [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. [Javascript] window.onload로 id에 강제값 window.onload = function () { document.getElementById("text_chk_cnt").value = 228; } 2017. 1. 22. [Javascript] JSTL리스트 배열로 담기 2017. 1. 18. [Java] 번호리스트에서 같은 번호 제외하고 카운트 // 화면에서 받아온 번호리스트에서 같은 번호 제외하고 카운트int tempArtnumListCnt = 0;String tempArtnum = "";for(String artnum: artnumList){if(!tempArtnum.equals(artnum)){tempArtnumListCnt++;tempArtnum = artnum;}}logger.debug("artnumListCnt ==" + tempArtnumListCnt);String artnumListCnt = Integer.toString(tempArtnumListCnt); 2017. 1. 13. [Javascript] 팝업창에서 submit하고 창닫기 @ 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 function doAction(sAction) { var f = document.frm; var test1 = document.getElementsByName("test1"); var test2 = document.getElementsByName("test2"); console.log(f.test1.value); console.log(f.test2.value); // alert(test1); // alert(test2); switch (sAction) { case "SENDBACK": //확인 if (confirm("저장 하시겠습니까?")) { ope.. 2017. 1. 11. 이전 1 ··· 15 16 17 18 19 20 21 다음 728x90 반응형