您的位置:首页 > 移动开发

html手机端调用手机相册和摄像头

2017-04-06 10:38 316 查看
在手机端调用手机摄像头和相册

<input type="file" capture="camera" accept="image/*" id="cameraInput" name="cameraInput">

如果只想调用相册或者选择文件

<input type="file" name="file" accept="image/*" >

如果想调用摄像头

<input type="file" name="file"  capture="camera">
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: