1.拍照和相册
<input type="file" multiple="multiple" accept="image/*" multiple id="files">
2.视频
<input type="file" accept="video/*" capture="camcorder">
3.拍照和视频选取
<input type="file" accept="audio/*" capture="microphone">
如果有需要展示选中或者拍照的图片的请看这篇:
FileReader()构造函数基本使用获取上传文件流