jeromeetienne / jquery-qrcode

qrcode generation standalone (doesn't depend on external services)
http://blog.jetienne.com/blog/2011/04/07/jquery-qrcode/
MIT License
4.84k stars 2.51k forks source link

Why to report errors 'QRErrorCorrectLevel is not defined'. #107

Open SanchoWalden opened 6 years ago

SanchoWalden commented 6 years ago

jquery code is ' $('#qrcode' + response.result.tbOrderNum).qrcode(response.result.tbOrderNum); ' html code is '<div id="qrcode' + item.tbOrderNum + '">

' error is 'QRErrorCorrectLevel is not defined'

werddomain commented 5 years ago

QRErrorCorrectLevel is not defined. I'm looking to define it ...

mike100111 commented 5 years ago

Same error. Any updates?

werddomain commented 5 years ago

Same error. Any updates?

I have fix it by searching the var QRErrorCorrectLevel = { then copy it in my script. It's look look like the it not in the global scope of the code.