
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)]
Notion AI:提供智能写作、编辑、摘要、翻译、任务提取等功能
巨量算数:基于今日头条、抖音、西瓜视频等海量用户行为的大数据分析平台
Gimy TV剧迷官网入口,在线观看台剧、韩剧、陆剧、欧美剧等热门剧目
上面是“获取当前时间,时间一天天递减”的全面内容,想了解更多关于 内容,请继续关注web建站教程。
当前网址:https://m.ipkd.cn/webs_160.html
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

wordpress网站哪些插件防止文章被盗
推荐一款Photoshop的优秀替代品——GIMP(免费开源)
文状元AI:一款快速生成高质量的在线AI公文写作平台
分析小红书优质笔记的写法
一款全新的多智能体(Mutli-Agent)框架——AgentScope(魔搭社区)