// 使用moment.js
const moment = require('moment');
const today = moment();
console.log(today.format('YYYY-MM-DD')); // 输出当前日期,例如 2024-07-26
利唐i人事HR社区,发布者:hiHR,转转请注明出处:https://www.ihr360.com/hrnews/20241210616.html