![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
p g one
这个作者很懒,什么都没留下…
展开
-
模拟ajax提交生成文件流进行下载(未知文件类型,支持所有类型文件直接下载)
/** * 文件下载方法(支持任何格式文件) * fileUrl 文件路径,fileName 下载后的文件新名 */ function fileDownloadFun(fileUrl,fileName) { if("undefined" == typeof fileUrl || !fileUrl){ alert('文件路径不能为空');return false; } let fileUrlArr = fileUrl.split('.'); let fileFix = "unde原创 2022-04-25 09:48:58 · 320 阅读 · 0 评论 -
js循环splice删除可能会遇到的坑
## splice删除一级 const list = [ {"className": "花花5555", "gradeName": "毕业班"}, {"className": "中ei班", "gradeName": "毕业班"}, {"className": "花花班5", "gradeName": "小班"}, {"className": "花花", "gradeName": "大班"}, {"className": "花花班", "grade原创 2022-03-22 09:39:38 · 364 阅读 · 0 评论 -
字符编码asc与utf-8与GB2312相互转换
asc与utf-8转换 <!DOCTYPE html> <html lang="zh-CN"> <head> <title>在线编码转换</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Language" content="zh-CN" /> <原创 2022-03-07 16:53:05 · 901 阅读 · 0 评论 -
js监听键盘事件
document.addEventListener('keydown', function(e){ if (e.keyCode == 86 && e.ctrlKey) { alert("你按下了ctrl+V"); } if (e.keyCode == 86 && e.altKey) { alert("你按下了alt+V"); } if (e.keyCode =..原创 2022-01-18 16:32:50 · 7016 阅读 · 1 评论