dillonlfy/weapp-qrcode

callback回调疑似未执行

Opened this issue · 2 comments

onload中
var qrcode = new QRCode('canvas', {
usingIn: this,
text: "https://github.com/tomfriwel/weapp-qrcode",
width: 150,
height: 150,
colorDark: "#000000",
colorLight: "#ffffff",
correctLevel: QRCode.CorrectLevel.H,
callback: function(res) {
console.log(res) // 未打印
},
success: res => {
console.log(res) // 未打印
}
});

lfsds commented

用utils下面的js

真的不打印 没有回调