Js任意时间戳转换任意时间格式
function formatChinaTime(timestamp, format) { const date = new Date(timestamp); const year = date.getFullYear(); const month = date.getMonth() + 1; const day = date.getDate(); const hour = d
function formatChinaTime(timestamp, format) { const date = new Date(timestamp); const year = date.getFullYear(); const month = date.getMonth() + 1; const day = date.getDate(); const hour = d