jquery的二维码生成插件qrcode,在页面中调用该插件就能生成对应的二维码
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script src="js/jquery-1.8.3.js"></script>
<script src="js/jquery.qrcode.min.js"></script>
<style>
#code{
width: 200px;
height: 200px;
}
</style>
</head>
<body>
<div id="code"></div>
</body>
</html>
<script>
$('#code').qrcode(""); //任意字符串
</script>
插件下载 https://files.cnblogs.com/files/wordblog/jquery.qrcode.min.js