We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在严格模式下("use strict";)会报错,因为此时this为undefined,而不是window。 解决:把 if (this._android && this._android <= 2.1) 改为 if (this && this._android <= 2.1)
The text was updated successfully, but these errors were encountered:
出个webpack版的包好不
Sorry, something went wrong.
错误原因上面讲了是 this 的问题,所以将 window 绑进去就行了。这里只 bind 了一个,代码应该可以正常运行了,但如果想要使得所有代码正常运行,那可能需要在多处 bind。
https://www.npmjs.com/package/qrcodejs2-fix
No branches or pull requests
在严格模式下("use strict";)会报错,因为此时this为undefined,而不是window。
解决:把 if (this._android && this._android <= 2.1) 改为 if (this && this._android <= 2.1)
The text was updated successfully, but these errors were encountered: