企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
~~~ /** * 获得当前时间数组 * 顺序: 年,月,日,时,分,秒,星期几,时间戳 */ dui.getCurrentTime()[0]; ~~~ ~~~ /** * 获得当前时间 */ getCurrentTime:function(){ var oDate = new Date(); var aDate = []; aDate.push(oDate.getFullYear()); aDate.push(oDate.getMonth()+1); aDate.push(oDate.getDate()); aDate.push(oDate.getHours()); aDate.push(oDate.getMinutes()); aDate.push(oDate.getSeconds()); aDate.push(oDate.getDay()); aDate.push(oDate.getTime()); return aDate; }, ~~~