[英]SAPUI5 Spinner is not working in higher versions of android
我已经使用 SAPUI5 开发了一个应用程序。 从一页导航到另一页时,必须出现微调器。 Spinner 在 jelly bean android 版本上运行良好。 但在更高版本上失败。 谁能帮我这个?
sap.ui.getCore().byId('loadingIndicator').setText("Loading...");
sap.ui.getCore().byId('loadingIndicator').open();
var oBusyDialog = new sap.m.BusyDialog();
oBusyDialog.open();// will work when DOMis already there
oBusyDialog.close();//else it throws error and page completely fails in IE.
因此把它放在try catch 中
try{
oBusyDialog.open();
}catch(e){
//Error handler
console.log("Busy dialog couldn't be loaded:"+e);
}
注意:在页面刷新时,DOM 不会在调用 open() 或 close() 方法之前加载,因此将其放在 try catch 中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.