TABLE ¿¤·¹¸àÆ®ÀÇ ÅÂ±× ´ÝÀ½(</TD></TR>)Àº »ý·«ÇÏ¿´´Ù.
<TABLE border=0 cellpadding=3 cellspacing=0 width=100%>
<COL style=background:cfe;padding-right:5px><COL style=background:fff><COL style=background:cef;padding-left:9px>
<SCRIPT>
var tr='<TR><TD align=right>'; // »õ ÁÙ »ðÀÔ
var td='<TD>'; // »õ Ä »ðÀÔ
var span='<SPAN class=method>'; // SPAN class »ðÀÔ
var eq='</SPAN><TD> = '; // SPAN ´ÝÀ½
var str=''; // Ãâ·Â ¹®ÀÚ¿ º¯¼ö ¼±¾ð
var now=new Date(); // ÇöÀç ³¯ÀÚ µ¥ÀÌÅÍ º¯¼ö¿¡ ÇÒ´ç
str+=tr+'now.'+span+'toUTCString()'+eq+td+now.toUTCString();
str+=tr+'now.'+span+'toGMTString()'+eq+td+now.toGMTString();
str+=tr+'now.'+span+'toString()'+eq+td+now.toString();
str+=tr+'now.'+span+'toDateString()'+eq+td+now.toDateString();
str+=tr+'now.'+span+'toTimeString()'+eq+td+now.toTimeString();
str+=tr+'now.'+span+'toLocaleString()'+eq+td+now.toLocaleString();
str+=tr+'now.'+span+'toLocaleDateString()'+eq+td+now.toLocaleDateString();
str+=tr+'now.'+span+'toLocaleTimeString()'+eq+td+now.toLocaleTimeString();
document.write(str); // °á°ú ¹®ÀÚ¿ Ãâ·Â
</SCRIPT>
</TABLE>
|