2012-04-22から1日間の記事一覧

時間の計算

1年の時間を計算 <html lang="ja"> <head> <meta charset="UTF-8"> <title>1年の秒数を計算して表示する</title> </head> <body> <script> document.write('<h2>1年を365日とした場合...</h2>'); document.write('<p>1年は' + (365*24) + '時間です</p>'); document.write('<p>1年は' + (365*24*60) + '分です</p>'); document.write('<p>1年は' + (3…</p></body></html>