我知道关于这个主题有一些类似的帖子,但没有一个对我有太大帮助(或者这可能是因为我还是个新手)。
无论如何,我正在寻找的东西是一个脚本来显示我的日期和从现在开始的 11 天。
下面的脚本是我用来显示当前日期和日期的脚本。所以我认为必须在某处添加或修改一些简单的行?像“+11”
任何有用的答案将非常非常非常感谢!
var daynames = new Array( "Sunday", "Monday", "Tuesday", "Wednesday","Thursday", "Friday", "Saturday");
var months = new Array( "january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december");
var currentTime = new Date();
var dayname = currentTime.getDay();
var month = currentTime.getMonth();
var day = currentTime.getDate();
var year = currentTime.getFullYear();
document.write(daynames[dayname] + "<BR> " + day + " " + months[month] + " " + year);