qrcode.js二维码长度溢出 报错如下: qrcode error: code length overflow. (1596>1056) 网上有很多方法,让改代码的,让使用一个修改过的库的。 其实都不用。 使用时候修改一下传入参数就行:correctLevel : 3 不用默认的QRCode.CorrectLevel.H。 另外注意,宽高要改大一点,比如300,400,因为如果信息过多,小的图是显示不下的。 width: 300, height: 300, correctLevel: 3, //QRCode.CorrectLevel.H github库 https://github.com/davidshimjs/qrcodejs/