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-AudioX模型插件入口,多模态音频生成框架AudioX开发的专属自定义节点
InternVL-U多模态模型使用入口,上海AI实验室正式推出,仅40亿参数的轻量级模型
Clura官网使用入口,自动化完成网页数据抓取、收集、整理全流程
GetBeel官网使用入口,连接Gmail邮箱,自动识别并提取邮件中的发票信息
Kita官网使用入口,一款专为新兴市场贷款机构打造的文件智能平台
上面是“获取当前时间,时间一天天递减”的全面内容,想了解更多关于 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_160.html
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

Vue项目如何利用GreenSock动画库实现动画效果 












