js按时间命名文件
var date = new Date(); // var seperator1 = "/"; var year = date.getFullYear(); var month = date.getMonth() + 1; var strDate = date.getDate(); var hour = date.getHours() if (month >= 1 && month <= 9) { month = "0" + month; } if (strDate >= 0 && strDate <= 9) { strDate = "0" + strDate; } var v2Currentdate = "关联与第三方发票_" + year.toString() + month.toString() + strDate.toString() + hour.toString() + ".xls"; v2Currentdate;
浙公网安备 33010602011771号