判斷早上下午,星期幾

<!DOCTYPE html> <html> <body> <p>點擊這個按鈕,得到基於時間的問候。</p> <button onclick="myFunction()">點擊這裏</button> <p id="demo"></p> <script> function myFunction() { var x=""; var time=new Date().getHours(); if
相關文章
相關標籤/搜索