11 2022 档案

摘要:const {width, height} = await this.getImgSize(base64) async getImgSize(base64) { const image = new Image() image.crossOrigin = '' image.src = base64 r 阅读全文
posted @ 2022-11-07 15:14 非帆丶 阅读(252) 评论(0) 推荐(0) 编辑
摘要:aDownload(url, fileName) { const link = document.createElement('a') link.style.display = 'none' link.href = url link.download = fileName // link.setAt 阅读全文
posted @ 2022-11-07 15:11 非帆丶 阅读(432) 评论(0) 推荐(0) 编辑
摘要:timeFormatting(val) { let time = val.slice(0, 10) // 兼容IOS time = time.replace(/-/g, '/') let date = new Date(time); let Y = date.getFullYear() let M 阅读全文
posted @ 2022-11-07 15:10 非帆丶 阅读(284) 评论(0) 推荐(0) 编辑
摘要:一、姓名脱敏 handleName(name) { let arr = Array.from(name) let result = '' if (arr.length 2) { result = arr[0] + '*' } else if (arr.length > 2) { for (let i 阅读全文
posted @ 2022-11-07 15:09 非帆丶 阅读(2895) 评论(0) 推荐(0) 编辑