摘要: 1)绑定input[type=‘file’]的change事件 2)利用fileReader对象获取图片或者文件的base64 编码 checkImg (size, type) { let checkSuccess = true // 只支持这三种格式的图片 const supportTypeLis 阅读全文
posted @ 2019-03-29 16:01 Macchiato 阅读(1674) 评论(0) 推荐(0) 编辑