![](https://img-blog.csdnimg.cn/9cd6e6e2122145b5bb3a56209d680219.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Utility
前端文件下载等日常逻辑
Faith-J
Against the clock
展开
-
高德地图行政区域四级级联数据拉取;省市区县乡镇级联数据
【代码】高德地图行政区域四级级联数据拉取;省市区县乡镇级联数据。原创 2023-10-07 10:18:56 · 367 阅读 · 0 评论 -
NVM 设置“全局(default)”node 版本,使新打开的终端(shell)为指定的node版本
NVM 要设置在任何新shell中使用的默认节点版本,请使用别名“default”(NVM To set a default Node version to be used in any new shell, use the alias ‘default’)原创 2023-02-04 11:54:39 · 8892 阅读 · 0 评论 -
JavaScript JS 随机rgb颜色
randColor() // 'rgb(96, 156, 217)'randColor() // 'rgb(148, 143, 221)'randColor() // 'rgb(71, 212, 206)'原创 2022-12-10 12:21:01 · 415 阅读 · 0 评论 -
常用正则集
常用正则集原创 2022-09-06 14:39:57 · 211 阅读 · 0 评论 -
ajax 前端下载Excel文件,下载成功但是内容全部为乱码
jQuery.ajax 请求jQuery 相关问题涉及版本jQuery 中文官方文档jQuery githubjQuery >=v1.5.1 支持 xhrFields 设置。jQuery >=v2.2.0 支持responseType数据类型为binary时返回,不再抛出异常。(Ajax: Don’t throw exceptions on binary data response)......原创 2022-06-03 22:35:03 · 3319 阅读 · 1 评论 -
window.URL.createObjectURL(new Blob([chunk])) 下载zip包解压报错问题
window.URL.createObjectURL(new Blob([chunk])) 下载zip包解压报错问题// 时间转换function parseTime(time, cFormat) { if (arguments.length === 0) { return null } const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}' let date if (typeof time === 'undefined' ||原创 2020-12-03 16:18:47 · 3158 阅读 · 0 评论