<input id="input" type="file"/>标签,iOS直接吊起相机拍照或是相册选择,但Android中只调起选择相册,没有调起相机拍照
解决办法:
只需要加上 accept="image/*" 就完美的兼容安卓和IOS了(accept表示打开的系统文件目录)
<input type="file" accept="image/*" multiple>
multiple 是多选,当支持多选时,multiple优先级高于capture
<input id="input" type="file"/>标签,iOS直接吊起相机拍照或是相册选择,但Android中只调起选择相册,没有调起相机拍照
解决办法:
只需要加上 accept="image/*" 就完美的兼容安卓和IOS了(accept表示打开的系统文件目录)
<input type="file" accept="image/*" multiple>
multiple 是多选,当支持多选时,multiple优先级高于capture