function times()
{
now = new Date();
hour = now.getHours();
min = now.getMinutes();
sec = now.getSeconds();
var set;
if(hour <= 12)
{
set="AM"
}
else
{
set="PM"
hour = hour - 12;
}
print = set+" "+ hour + ":" + min + ":" + sec;
[removed](print);
}
이런식으로 시간 나타내는걸 짯는데말이야
출력은 잘되는데 시간이안가
시간을 실시간으로 가게할려면 어캐해야해?
루프돌려
setInterval로 주기적으로 호출해.