qrcode.js 插件在 webpack 中的 _android 错误解决

我是在nuxt.js中使用这个qrcode.js的,运行起来会报 Cannot read property '_android' of undefine

参考: https://github.com/davidshimjs/qrcodejs/issues/113

1.下载未解压的qrcode.js 

2.将:if (this._android && this._android <2.1) 改为:if (this && this._android <= 2.1)

posted @ 2020-02-26 14:40  骑着小毛驴1688  阅读(1209)  评论(1编辑  收藏  举报