js生成当前时间 var today=new Date(); function itArray(){ this.length=itArray.arguments.length for(var i=0;i<this.length;i++) this[i+1]=itArray.arguments[i]} var d=new itArray("星期日","星期一","星期二","星期三","星期四",&qu…
js获取当前时间 //获取当前时间,格式YYYY-MM-DD function getNowFormatDate() { var date = new Date(); var seperator1 = "-"; var year = date.getFullYear(); var month = date.getMonth() + 1; var strDate = date.getDate(); if (month >= 1 && month <= 9) {…