前言:
?
? ? ?本文主要整理采用Google chart来生成QR二维码相关
?
?
???正文:
?
? ?内容参考来自:https://google-developers.appspot.com/chart/infographics/docs/qr_codes
?
? ?google chart服务:
?
- 根路径:?https://chart.googleapis.com/chart?
- 参数配置:
- cht=qr ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?必需 ? ? 定义QR code
- chs=<width>x<height> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 必需 ? ? 图片尺寸(准确地应该是最大尺寸)?
- chl=<data> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?必需 ? ? 内容,中文必需转义
- choe=<output_encoding> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 可选 ? ? 默认UTF-8,还有Shift_JIS、ISO-8859-1
- chld=<error_correction_level> | <margin> ? ? ? 可选 ? ?L默认,还有M,Q,H;margin的默认是4
?
? ?找到一个很好的站点服务:(来自MicXP程序爱好者)
?
? ?http://blog.micxp.com/tools/createqr.html