有个异常,但好像也没啥影响
Cannot read property '__wxWebviewId__HONOR KNT-AL10 Android 6.0 目前不知如何复现,小程序正常使用情况下,有机率发生如下错误: [代码]appServiceSDKScriptError TypeError: Cannot read property '__wxWebviewId__' of undefined; at wx.createSelectorQuery [代码][代码] [代码][代码]X5JsCore:48:14266 Function.i[代码][代码] [代码][代码]X5JsCore:43:7757 Object.createSelectorQuery[代码][代码] [代码][代码]X5JsCore:3031:842 Function.e[代码][代码] [代码][代码]X5JsCore:42:13773 [代码][代码] [代码][代码]X5JsCore:47:7186[代码]疑似发生在内核 [代码]function[代码] [代码](e, t, n) {[代码][代码] [代码][代码]Object.defineProperty(t, [代码][代码]"__esModule"[代码][代码], {[代码][代码] [代码][代码]value: !0[代码][代码] [代码][代码]}), t.createSelectorQuery = void 0;[代码][代码] [代码][代码]var[代码] [代码]r = n(163),[代码][代码] [代码][代码]o = [代码][代码]function[代码] [代码](e) {[代码][代码] [代码][代码]return[代码] [代码]e && e.__esModule ? e : {[代码][代码] [代码][代码]default[代码][代码]: e[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}(r),[代码][代码] [代码][代码]i = [代码][代码]function[代码] [代码](e) {[代码][代码] [代码][代码]var[代码] [代码]t = [代码][代码]null[代码][代码];[代码][代码] [代码][代码]if[代码] [代码](e && e.page) t = e.page.__wxWebviewId__;[代码][代码] [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]var[代码] [代码]n = getCurrentPages();[代码][代码] [代码][代码]t = n[n.length - 1].__wxWebviewId__[代码][代码] [代码][代码]}[代码][代码] [代码][代码]return[代码] [代码]new[代码] [代码]o.[代码][代码]default[代码][代码](t)[代码][代码] [代码][代码]};[代码][代码] [代码][代码]t.createSelectorQuery = i[代码][代码] [代码][代码]}[代码]请问什麽情况下会发生,要如何避免这个错误,谢谢
2021-09-30