标签:set text cti 星期几 日常 ext http round har
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>获取当前星期</title> </head> <body> <script type="text/javascript"> /** *获取当前星期几 * */ function getWeekDate() { var now = new Date(); var day = now.getDay(); var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"); var week = weeks[day]; return week; } alert(getWeekDate()); </script> </body> </html>
来自微信公众号:编程社
程序员日常进阶宝典,欢迎关注!
标签:set text cti 星期几 日常 ext http round har
原文地址:https://www.cnblogs.com/ai10999/p/11449459.html