我需要创建基于日期比较的 javascript 函数。这意味着,将 Currentday 与 Currentday+7 进行比较。
function a(value)
{
//here how to get current date
//here how to add 7 days with current date
return addedvalue;
}
function b(value)
{
var s=a(value);
//again getting current date here
//check this function current date with s.then if its true means show,
alert('next 7th day is'+s);
}
这该怎么做?