摘要:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>日期</title></head><body><scr
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>日期</title> </head> <body> <script type="text/javascript"> var myday=new Date() document.write(myday) document.write("<br>") document.write("<br>") document.write("今天是"+myday.getFullYear()+'年') document.write(myday.getMonth()+'月') document.write(myday.getDate()+'日') document.write("星期"+myday.Day()) document.write("<br>") document.write("現(xiàn)在是"+myday.getHours()+'時(shí)') document.write(myday.getMinutes()+'分') document.write(myday.getSeconds()+'秒') </script> </body> </html>
批改老師:查無(wú)此人批改時(shí)間:2019-02-16 09:03:52
老師總結(jié):完成的不錯(cuò),日期時(shí)間函數(shù),多用在彈出時(shí)間選擇框。比如買(mǎi)機(jī)票,每天的價(jià)格不一樣。多練習(xí),繼續(xù)加油。