项目在打包成H5正常运行,测试浏览器也可以运行,但是真机模拟APP的时候,会出现白屏,白屏原因如下:
reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught TypeError: Cannot read property 'match' of undefined
着急在线等
胖胖不太胖 (作者)
嗯呢,这边已经解决了。是正则编写错误 谢谢
2022-02-08 10:20
w***@sandisolarplus.com
回复 胖胖不太胖: 正则的错误,reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught TypeError: Cannot read property 'evalJS' of undefined
at eval (<anonymous>:37:12)
这个代码吗
initWebviewAuth() {
const currentWebview = this.$scope.$getAppWebview();
setTimeout(() => {
const params = {
webviewUsedData: this.webviewUsedData,
};
wv = currentWebview.children()[0];
wv.evalJS(
initAuth('${JSON.stringify(params)}')
);}, 5000);
},
楼主帮忙看看
RangeError: Maximum call stack size exceeded
10:15:04.812 [JS Framework] Failed to execute the callback function:
TypeError: Cannot read property 'evalJS' of undefined
2023-10-16 10:24
胖胖不太胖 (作者)
回复 w***@sandisolarplus.com: 不好意思 ,刚看到
2023-11-03 10:42