html script生成二维码

 1 <div class="code" align="center">
 2 <p >手机端扫描以下二维码直接观看(支持安卓Android/苹果iOS/微信)</p>
 3 <SCRIPT LANGUAGE=JavaScript>
 4 /* 2014/07/19 21:09 */
 5 var _qrContent =escape(document.location.href);
 6 _qrLogo='./images/logo.png',
 7 _qrWidth=200,
 8 _qrHeight=200,
 9 _qrType = 'url'; 
10 var _qrContent =escape(document.location.href);
11 document.write(unescape("%3Cscript src='http://qrcode.leipi.org/js.html?qw="+_qrWidth+"&qh="+_qrHeight+"&qt="+_qrType+"&qc="+escape(_qrContent)+"&ql="+escape(_qrLogo)+"' type='text/javascript'%3E%3C/script%3E")); 
12 </SCRIPT> 
13 </div>    
原文地址:https://www.cnblogs.com/dyfisgod/p/7000591.html