Today, QR codes are everywhere. How do I generate a QR code based on js? In the face of this problem, the following small series will share with you a code that describes how to generate a QR code image summary in javascript. If you are interested, let's study it together.
Abstract:
Baidu encyclopedia introduces the QR Code in this way: the QR Code (Quick Response Code), also known as the two-dimensional barcode, uses a specific geometric image in the plane according to a certain law (two-dimensional direction) the black and white images distributed on are a key to all information data. In modern business activities, it can be widely used, for example: product anti-counterfeiting/tracing, advertising push, website links, data downloads, product transactions, positioning/navigation, e-commerce applications, vehicle management, information transmission, etc. Today, the application of the smart phone scan (313 for short) function makes the QR code more common. With the booming domestic Iot industry, more QR code technology application solutions have been developed, QR code has become a reality for mobile Internet portals.
We can see QR codes everywhere when surfing the Internet. How can we generate a QR code on the front end? Today, I will share the QR code generated at the front end.
Introduction:
QRCode. js is a js library that supports HTML 5 canvas and table tagging in the DOM across browsers. We use QRCode. js.
Browser:
IE6 ~ 10, Chrome, Firefox, Safari, Opera, Mobile Safari, Android, Windows Mobile, ETC.
Jquery-qrcode:
Jquery-qrcode features: simple operation, small size, only 14 k after compression, but does not support Chinese encoding.