h5页面调用相机功能

//accept:表示要打开的文件类型      capture:表示可以捕获到系统默认的设备

<input type="file" accept="image/*" capture="camera">  相机

<input type="file" accept="video/*" capture="camcorder"> 录像

<input type="file" accept="audio/*" capture="microphone"> 系统相册

<input type="file" accept="image/*" multiple>  多选
原文地址:https://www.cnblogs.com/jasonlai2016/p/11126748.html