Blob:blob数据类型以随机存取块的形式存储任何种类的二进制数据 blob对象怎么转换为文件:
const newFile = new window.File([rst.file],file.name,{type:file.type})
input标签 accept限制类型的时候,ios那边识别不了,accept设置的所有文件 /,但是安卓可以识别,进入页面先判断下设备 是安卓还是ios 然后再去配置accept。
【iOS:{accept:'*/*'};android:{accept:'application/*'}
安卓端调起摄像头和相册
const accept = navigator.userAgent.match("Android") ? 'image/*' :''