zoukankan      html  css  js  c++  java
  • JS获取当天是周几

                                        dt2 = new Date();
                                        var weekDay = ["星期天""星期一""星期二""星期三""星期四""星期五""星期六"];
                                        if( weekDay[dt2.getDay()] == '星期一' )
                                        {
                                            str += line[i].SENDTIMEMONDAY;
                                        }
                                        if( weekDay[dt2.getDay()] == '星期二' )
                                        {
                                            str += line[i].SENDTIMETUESDAY;
                                        }
                                        if( weekDay[dt2.getDay()] == '星期三' )
                                        {
                                            str += line[i].SENDTIMEWEDNESDAY;
                                        }
                                        if( weekDay[dt2.getDay()] == '星期四' )
                                        {
                                           str += line[i].SENDTIMETHURSDAY;
                                        }
                                        if( weekDay[dt2.getDay()] == '星期五' )
                                        {
                                            str += line[i].SENDTIMEFRIDAY;
                                        }
                                        if( weekDay[dt2.getDay()] == '星期六' )
                                        {
                                             str += line[i].SENDTIMESATURDAY;
                                        }
                                        if( weekDay[dt2.getDay()] == '星期天' )
                                        {
                                            str += line[i].SENDTIMESUNDAY;
                                        }
  • 相关阅读:
    常见规格液晶显示器尺寸/点距/分辨率
    Disk genius(Diskgenius)修复硬盘分区表
    IIS上注册.Net
    PowerDesigner中如何导入表结构
    关于VS命名空间的引用
    启动Word时出现“复制文件或文件夹时出错"对话框?
    能够删除的安卓(Android)系统自带程序详细列表和说明
    五种方法 解决Windows最大终端连接数
    查看本机打开的端口
    RAID技术概述
  • 原文地址:https://www.cnblogs.com/zecVip/p/4478437.html
Copyright © 2011-2022 走看看