GoogleQRCode的介绍很久没有出现在网上了,直接从chart页过去找也很麻烦,而且还经常 找不到。
在这里贴个链接:https://developers.google.com/chart/infographics/docs/qr_codes
再来个简单的说明,生成QRCode真的很简单(以前也写过博客介绍过,其实我这次只是想贴个链接而已),上一次是: google QRCode,在之前还有一篇:QR CODE,看文中的链接已经变了,原文中说的:https://code.google.com/apis/chart/docs/gallery/qr_codes.html,已经是404了。。。
用法很简单:
1、接口地址:https://chart.googleapis.com/chart?
2、几个参数:
| Parameter | Required or Optional | Description | 
|---|---|---|
cht=qr | 
            Required | Specifies a QR code. | 
chs=<width>x<height> | 
            Required | Image size. | 
chl=<data> | 
            Required | The data to encode. Data can be digits (0-9), alphanumeric characters, binary bytes of data, or Kanji. You cannot mix data types within a QR code. The data must be UTF-8 URL-encoded. Note that URLs have a 2K maximum length, so if you want to encode more than 2K bytes (minus the other URL characters), you will have to send your data using POST. | 
choe=<output_encoding> | 
            Optional | How to encode the data in the QR code. Here are the available values:
            
  | 
        
chld=<error_correction_level>|<margin> | 
            Optional | 
            
  | 
        
是不是很简单?

