<html>
<head>
<title>二维码入门小demo</title>
</head>
<body>
<img id="qrious">
<script src="qrious.min.js">//先引入Js</script>
<script>
var qr = new QRious({
element:document.getElementById('qrious'),//页面添加Id=qrious
size:250, level:'H', value:'http://www.itcast.cn'
});
</script>
</body>
</html> |
|