~~~
// 二维码设置参数方式
var qrcode = new QRCode('qrcode', {
text: 'wxp://f2f06RLRU96mC1NW6R382qmr6dZpwggQFjYi',
width: 250,
height: 250,
correctLevel: QRCode.CorrectLevel.H
});
~~~
参考文档
https://www.cnblogs.com/niuboren/p/5887388.html