1.调用设备摄像头
<input type="file" accept="image/*" capture="camera">
2.调用系统相册
<input type="file" capture="camera">
3.调用摄像头和系统相册
<input type="file" accept="image/*">
1.调用设备摄像头
<input type="file" accept="image/*" capture="camera">
2.调用系统相册
<input type="file" capture="camera">
3.调用摄像头和系统相册
<input type="file" accept="image/*">
转载于:https://www.cnblogs.com/ytwanzi/p/7605693.html