如何在HTML5网站上创建QR码阅读器? [英] How to create a QR code reader in a HTML5 website?

查看:145
本文介绍了如何在HTML5网站上创建QR码阅读器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找在我的基于HTML5的网页中创建QR码阅读器的可能性。我做了一些Google搜索,所有链接都指向移动应用程序。

I was looking for possibility to create QR code reader in my HTML5 based web page. I've done some googling and all the links point me to the mobile applications.

请帮我提一下如何使用HTML5和JavaScript阅读包含网址的二维码,然后将浏览器重定向到该网址。

Please help me with some pointers as to how I can use HTML5 and JavaScript to read a QR code containing a url and then redirect the browser to that URL.

推荐答案

JavaScript解码器不多。

There aren't many JavaScript decoders.

最简单的方法是在您的服务器上运行 ZXing 或类似软件。然后,您可以POST图像并在响应中返回解码结果。

The easiest way is to run ZXing or similar on your server. You can then POST the image and get the decoded result back in the response.

这篇关于如何在HTML5网站上创建QR码阅读器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆