<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 language="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/>"; = ": " mydate.toLocaleTimeString(); <BR>str = ":" mydate.getMilliseconds() " <br/>週"; <BR>str = "天一二三四五六".charAt( mydate.getDay ()) "<br/>これは閏年ですか?:"; <br>str = ((mydate.getFull Year() % 4 == 0 && mydate.getFull Year() % 100 != 0 ) || ( mydate.getFull Year() % 400 == 0)) ? "はい" : "いいえ" }; ; <br> } <br>setInterval(show,1000) <br></script> <br><br> <br> <br><br><br>コードをコピーします<br><br> </div> <br><br><div class="codetitle"><span> ;br/><br/><br/> <a style="CURSOR: pointer" data="97969" class="copybut" id="copybut97969" onclick="doCopy('code97969')"><btnShow" >日付操作<u></br> /div> </u> </a></div> </span></div> <div class="codebody" id="code97969"> <br><br><br> </div>