Two practical methods for fast generation of two-dimensional code on Web pages

Source: Internet
Author: User

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:

        
 
   
  
  1. 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:

        
  
 
  1. varQRCode= New QRCode("QRCode", {
  2. text : "http://www.gbtags.com",
  3. width : 260,
  4. Height : 260,
  5. Colordark : ' #efb73e ',
  6. Colorlight : "#ffffff"
  7. });

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.