![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
一只dove
这个作者很懒,什么都没留下…
展开
-
兼容IE的excel下载
let blob = new Blob([res.data], {type: "application/vnd.ms-excel"}); //res.data是后台返回的数据 var filename='赠送模板.xls'; if (window.navigator.msSaveOrOpenBlob) { //兼容ie window.navigator.msSaveBlob(blob, ...原创 2019-06-01 11:44:01 · 1101 阅读 · 0 评论 -
一个页面上多个秒杀倒计时
1.时间的换算 function timer (DateStr){ var date = {}; //结束时间 var endDate = new Date(DateStr); //当前时间 var nowDate = new Date(); //相差的总秒数 var totalSeconds = parseInt((endDate - nowD...原创 2019-08-16 17:34:21 · 561 阅读 · 0 评论