简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
vue中压缩图片功能
vue中压缩图片功能compress(inputFile, fileAttr) {const self = this;const reader = new FileReader();reader.readAsDataURL(inputFile);reader.onload = function(e) {//防止照片文件过大无法上传, 通过以下代码重新创建一个固定宽高的图片再上传var image
到底了