Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我想做的是:
离线打开 html 文件 -> 打开 QR 码功能 -> 访问设备摄像头 -> 拍摄 QR 码图片 -> 按我的意愿获取和使用这些数据。
问题是什么:
由于我试图从离线网页访问设备摄像头,因此需要 HTTPS 连接。
问题:
有没有办法在不需要本地 https 服务器的情况下从移动设备(例如)获取这些数据?
谢谢你,祝你有美好的一天!
是的,这是可能的。我有很好的经验https://www.npmjs.com/package/@zxing/library