摘要: /** * 下载文件以及自定义文件名称 */ const downFile = (url, fileName) => { const xhr = new XMLHttpRequest(); xhr.open("GET", url, true); xhr.responseType = "blob"; 阅读全文
posted @ 2022-11-02 17:25 浮生如梦似离殇 阅读(1264) 评论(0) 推荐(0) 编辑
摘要: let arr = [2, 3, 6, 7, 2, 5, 3]; /** * 找出数组中重复的数字。 * @param {*} arr */ const findRepeatNumber = (arr) => { let map = new Map(); for (let i of arr) { i 阅读全文
posted @ 2022-11-02 09:58 浮生如梦似离殇 阅读(155) 评论(0) 推荐(0) 编辑