TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Pure browser qrcode generation as simple as $('#contain').qrcode('foobar')

146 点作者 jerome_etienne大约 14 年前
hoping to make qrcode easier to use

10 条评论

chopsueyar大约 14 年前
What specific examples do you guys use QR codes for on websites?<p>How well does it work (not in terms of recognition, but traffic generation, etc)?<p>I am looking for a use, but always come up with easier solutions that do not involved barcodes and image recognition on smartphones.
评论 #2419277 未加载
评论 #2419269 未加载
评论 #2419404 未加载
hazelnut大约 14 年前
it's great<p>another way to get a qr code in just one line: <a href="https://chart.googleapis.com/chart?chs=150x150&#38;cht=qr&#38;chl=news.ybombinator.com" rel="nofollow">https://chart.googleapis.com/chart?chs=150x150&#38;cht=qr&#3...</a>
评论 #2420023 未加载
评论 #2425680 未加载
评论 #2419644 未加载
评论 #2420264 未加载
评论 #2419837 未加载
sylvinus大约 14 年前
great idea!<p>slap me for being so 90s but would it also be possible to have it degrade into a small &#60;table&#62; when canvas is not supported?
danfitch大约 14 年前
Looks like it uses canvas to draw the qr. Using something like <a href="http://raphaeljs.com/" rel="nofollow">http://raphaeljs.com/</a> would have made it even better for backwards compatibility. Awesome job though!
评论 #2419635 未加载
pasbesoin大约 14 年前
Note that the qrcode.js part of this is<p><pre><code> // QRCode for JavaScript // // Copyright (c) 2009 Kazuhiko Arase // // URL: http://www.d-project.com/ </code></pre> Here's the related QR project(s). (Note the implementations in other languages.)<p><a href="http://www.d-project.com/qrcode/index.html" rel="nofollow">http://www.d-project.com/qrcode/index.html</a><p>I forget (if I ever knew) whether this has any connection with the originators of QR code:<p><a href="http://en.wikipedia.org/wiki/Denso" rel="nofollow">http://en.wikipedia.org/wiki/Denso</a>
vdm大约 14 年前
View source: <a href="http://jeromeetienne.github.com/jquery-qrcode/examples/basic.html" rel="nofollow">http://jeromeetienne.github.com/jquery-qrcode/examples/basic...</a><p>It creates a &#60;canvas&#62; element. Sweet.
runaway大约 14 年前
It would be more convenient if it automatically wrote the canvas out to a Base64 encoded png, imo. Makes for easy saving because I can then drag it to the desktop.
lwhi大约 14 年前
In the past I've used the google charts API to generate QR codes.<p>Is there a benefit to generating a qrcode on the client side?
评论 #2419274 未加载
评论 #2419257 未加载
评论 #2419234 未加载
评论 #2419670 未加载
评论 #2419794 未加载
benologist大约 14 年前
Isn't google ditching QR codes for NFC?
评论 #2421774 未加载
josh33大约 14 年前
Could this be used from an iOS application or is there a better self-contained library for iOS?