建站QQ:978724145

jquery自动生成二维码

把下面的jquery代码放到想要在当前页面上面生成二维码:

代码如下:

<script type="text/javascript">
var _qrContent='',_qrLogo='http://hflol.net',_qrWidth=100,_qrHeight=100,_qrType = 'auto';
if(!_qrContent)
var _qrContent =escape(document.location.href);
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"));
</script>

力劦工作室提供

posted @ 2015-09-08 10:43  吴晓敏  阅读(753)  评论(0)    收藏  举报
天地游新闻网