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