
function getDate(index) {
var date = new Date(); //当前日期
var newDate = new Date();
newDate.setDate(date.getDate() + index); //官方文档上虽然说setDate参数是1-31,其实是可以设置负数的
var time = newDate.getFullYear() + "/" + (newDate.getMonth() + 1) + "/" + newDate.getDate();
return time;
}
function getDate2(index) {
var date = new Date(); //当前日期
var newDate = new Date();
newDate.setDate(date.getDate() + index); //官方文档上虽然说setDate参数是1-31,其实是可以设置负数的
var time = (newDate.getMonth() + 1) + "-" + newDate.getDate();
return time;
}
//获取时间递减
data: [getDate2(-7), getDate2(-6), getDate2(-5), getDate2(-4), getDate2(-3), getDate2(-2), getDate2(-1)]
ComfyUI-CacheDiT模型安装入口,为ComfyUI设计的DiT模型一键加速插件
ComfyUI-AceMusic模型安装入口,打造ComfyUI专业音乐生成自定义节点
Qwen-Image-Edit-Causal模型使用入口,Light AI优化版图像编辑模型
Kimi Claw模型使用入口,月之暗面Moonshot AI云端AI智能体服务
上面是“获取当前时间,时间一天天递减”的全面内容,想了解更多关于 内容,请继续关注web建站教程。
当前网址:https://m.ipkd.cn/webs_160.html
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

WindSurf:一个由Codeium研发并基于VS Code的AI Code编辑器
上海越剧院:创作了许多经典剧目,并不断推出新作品以满足人民的文化需求
国内跨平台文本编辑器——Notepad--(ndd)
蝉妈妈AI :一款基于DeepSeek-R1「满血版」大模型的AI电商助手
DeepSeek-Math-V2:DeepSeek团队开源的自我验证型数学推理模型