从网上打开iphone相机扫描二维码

时间:2018-02-19 01:46:30

标签: jquery iphone

我想在网站上添加一个按钮来启动iphone相机以扫描QR码。添加一个简单的标签后,相机启动它不会扫描任何东西。以下是我尝试的代码:

<input type="file" accept="image/*" id="capture" capture="camera"> and
<input type="file" accept="video/*" id="capture" capture="camcorder"> and <input type="file" accept="image/*;capture=camera">

我错过了什么?

0 个答案:

没有答案