/**
* @params min 倒推的分钟数, back 倒退粒度 例如 (60*24, 1) 即往前倒退一天
* @impact 处理时间格式,用于获取当前时间的前时间点(天/小时/分钟)
*/
window.giveDate=functiongiveDate(min, back){
if(min !=60*24){
let ms =newDate().getTime();//获取当前时间戳let ms_back = min * back *60*1000;//获取 倒退 分钟数时间戳
ms = ms - ms_back -(ms %(min *60*1000));let d =newDate();
d.setTime(ms);let getMonth =
d.getMonth()