<head>
<meta charset="utf-8">
<title>生成二维码</title>
<meta name="viewport"
content="width=device-width, initial-scale=1, minimum-scale=1.0,maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
</head>
<div id="code"></div>
<script src="/public/js/jquery.min.js"></script>
<script src="/public/js/qrcode.js" type="text/javascript" ></script>
<script>
$("#code").qrcode({
render: "image", //table
//width: 240, //宽度
//height:240, //高度
text: '<?php echo 'syh';?>' //任意内容
});
</script>
网友评论