Google Api替网站每个页面自动生成二维码
Google Api为网站每个页面自动生成二维码
将以下代码拷贝到要生成二维码的页面中:
将以下代码拷贝到要生成二维码的页面中:
<script type="text/javascript"> document.write("<img style=\"float:left;\" src=\"https://chart.googleapis.com/chart?cht=qr&chs=500x500&choe=UTF-8&chld=L|2&chl="); document.write(window.location.href); document.write("\" width=\"120\" height=\"120\" alt=\"二维码\"/>"); </script> </div>