How does DEDECMS generate QR codes for each page?
DreamWeaver DEDECMS generates QR codes for each page
Recommended learning:Dreamweavercms
The QR code generation is actually It's very simple, but it would be too inhumane to have the same QR code no matter which page it is on. The code provided today can easily automatically generate a matching QR code based on the current URL address. No need to For the help of any plug-in, just put the following code directly in the web page code. The width and height are the width and height of the QR code:
<script> 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='QR 码' />"; document.write( strwrite ); </script>
The above is the detailed content of How does DEDECMS generate QR codes for each page?. For more information, please follow other related articles on the PHP Chinese website!