前端生成二维码

 

  需要引入两个东西

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery3.4.1.min.js"></script>
    <script src="jquery.qrcode.min.js"></script>
</head>
<body>
 <div id="qrcodeCanvas"></div>
</body>
<script>
$('#qrcodeCanvas').qrcode({
    width   : 300,
    height  : 300,
    text    : "写你的网址"
});
</script>
</html>

 

posted @ 2019-10-31 17:29  流年中渲染了微笑  阅读(367)  评论(0编辑  收藏  举报