01 2023 档案
js 比较两个时间相差的天数
摘要:util.TowTimeDayFormat = function (time1, time2) { let totalDays,diffDate var day1 = Date.parse(time1) var day2 = Date.parse(time2) // 将两个日期都转换为毫秒格式,然后 阅读全文
posted @ 2023-01-29 10:13 鄢宁 阅读(972) 评论(0) 推荐(0)
后台给地址 前端直接下载 中文乱码解决方法
摘要:util.exportUrl=function(url,mthod,data){ const a = document.createElement('a') // 使用fetch方法获取response.headers响应头 fetch(url, { method: mthod, body: JSO 阅读全文
posted @ 2023-01-11 15:59 鄢宁 阅读(192) 评论(0) 推荐(0)