美文网首页
h5项目中如何打开相机拍照?

h5项目中如何打开相机拍照?

作者: Angrybird233 | 来源:发表于2022-12-28 17:57 被阅读0次

打开后摄像头:

<input type="file" :value="current_img" name="image" accept="image/*" capture="environment" />

打开前摄像头:(安卓不生效,依旧是后摄像头)

<input type="file" :value="current_img" name="image" accept="image/*" capture="user" />

相关文章

网友评论

      本文标题:h5项目中如何打开相机拍照?

      本文链接:https://www.haomeiwen.com/subject/ilmbtdtx.html