摘要: 第一种:利用if...else... var str = ""; var week = new Date().getDay(); if (week == 0) { str = "今天是星期日"; } else if (week == 1) { str = "今天是星期一"; } else if (w 阅读全文
posted @ 2021-08-25 09:06 Hello小码 阅读(1139) 评论(0) 推荐(1) 编辑