js switch if使用

<!DOCTYPE html> <html> <body> <h2>JavaScript switch</h2> <p id="demo"></p> <script> var text; switch (new Date().getDay()) { case 4: case 5: text = "周末立刻就到了"; break; case 0: case 6:
相关文章
相关标签/搜索