android真机或模拟器把语言设为阿拉伯语言时,plus.nativeUI以及自定义的插件调用均会出错,提示unexpected token错误。
错误截图:
经过单步跟踪调试发现,调用下面这句后,就会弹出如图所示错误
plus.nativeUI.closeWaiting();
相关环境:
android为8.0
HBuilder 9.1.25.201810101806
离线SDK版本:1.9.9.52372-20180929
测试代码:
Hello
Hello Wolrd
window.onerror = function(errorMsg, url, lineNumber, column, errorObj) {
alert('Error: ' + errorMsg + ' \nScript: ' + url + ' \nLine: ' + lineNumber + ' \nColumn: ' + column + ' \nStackTrace: ' + errorObj);
}
mui.plusReady(function(){
mui.init({
beforeback: function(){
back();
//如果返回true,继续页面关闭逻辑
return false;
}
});
plus.nativeUI.showWaiting("Hello World");
setTimeout(function(){
plus.nativeUI.closeWaiting();
},2000);
});