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>  多选

 

posted @ 2019-07-03 15:31  jasonlai2016  阅读(1942)  评论(0编辑  收藏  举报