<div class="codetitle"> <span><a style="CURSOR: pointer" data="6255" class="copybut" id="copybut6255" onclick="doCopy('code6255')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code6255"> <br><script 언어="javascript" > >$( document).ready(function(){ <br>function show(){ <br>var mydate=new Date(); <br>var str = "" mydate.getFullYear() "연도"; <br>str = (mydate.getMonth() 1) "월"; <br>str = mydate.getDate() "일 <br/>" <br>str = mydate.toLocaleTimeString(); = ": " mydate.toLocaleTimeString(); <br>str = ":" mydate.getMilliseconds() " <br/>Week" <br>str = "천일이삼사오六".charAt( mydate.getDay ()) "<br/>윤년인가요?:"; <br>str = ((mydate.getFullYear() % 4 == 0 && mydate.getFullYear() % 100 != 0 ) || ( mydate.getFullYear() % 400 == 0)) ? "예" : "아니요" }; ; <br> } <br>setInterval(show,1000) <br>}) <br><br></script> <br><br> <br> <br><br> </div>코드 복사<br><br><div class="codetitle"> 코드는 다음과 같습니다.<span><a style="CURSOR: pointer" data="97969" class="copybut" id="copybut97969" onclick="doCopy('code97969')"> <u><body> </u><div> ;br/>< br/><br/> </a><button id="btnShow" >날짜 작업 표시</button> /div> </span> <div id="dateTime"> </div> <div class="codebody" id="code97969"></div> <br><br> <br>결과: <br> <br><br><br> </div>