利用谷歌api的代码可以方便的嵌入:支持静动态网页
魅力网络整理代码如下:
1
2
3
4
5
6
7
|
<
script
type
=
"text/javascript"
>
thisURL = document.URL;
strwrite =
"<
img
src='https://chart.googleapis.com/chart?
cht
=
qr
&
chs
=
150x150
&
choe
=
UTF
-8&
chld
=
L
|4&chl="
+ thisURL + "'
width
=
'150'
height
=
'150'
alt
=
'网址URL 二维码生成'
/>";
document.write( strwrite );
</
script
>
|
附件:http://down.51cto.com/data/2368218
本文转自 yeybz 51CTO博客,原文链接:http://blog.51cto.com/hmlwl/1859740