Two-dimensional code is the desktop and mobile fast sharing one of the efficient means, here to introduce two a good way to quickly develop two-dimensional code, and share with you ~ ~
Method 1: Use the services provided by Sina
This method is simple and fast, in the server to generate a two-dimensional code picture, compatibility is better, you do not have to handle any of the relevant two-dimensional code generation, only need to provide one end of text or URL, the method is as follows:
- src="http://qrcoder.sinaapp.com?t=http://www.gbtags.com" >
The resulting effect is as follows:
You can visit the Geek label Master Station for a sweep.
Method 2: Use the jquery plugin QRCode
QRCode is a jquery plugin that allows you to use JavaScript to quickly help you generate related QR codes
The relevant code is as follows:
- varQRCode= New QRCode("QRCode", {
- text : "http://www.gbtags.com",
- width : 260,
- Height : 260,
- Colordark : ' #efb73e ',
- Colorlight : "#ffffff"
- });
The resulting effect is as follows:
If you are interested in this plugin, it is recommended to read this lesson: the use of QRCode
These are two more practical ways to generate a two-dimensional code, lazy people recommend the use of the first, simple and fast, if the need for deep customization, it is recommended to use JS to achieve the relevant two-dimensional code, specific to see everyone needs, the code share of the Geek tag is the first type, we can refer to the following:
Related address: http://www.gbtags.com/gb/rtreplayerpreview/828.htm
http://0755xyk.shenzhen.baixing.com/
Two practical methods for fast generation of two-dimensional code on Web pages