//调用相机
<input type="file" name="image" accept="image/*" capture="camera" ref="camera">
//调用相册
<input accept="image/*" type="file" ref="file">
不想调按钮样式可以直接隐藏按钮,通过事件调用该API。
//调用相机
<input type="file" name="image" accept="image/*" capture="camera" ref="camera">
//调用相册
<input accept="image/*" type="file" ref="file">
不想调按钮样式可以直接隐藏按钮,通过事件调用该API。
本文标题:HTML5调用手机相机、相册
本文链接:https://www.haomeiwen.com/subject/fwroqltx.html
网友评论