我使用SAPUI5开发了一个应用程序。在从一个页面导航到另一个页面时,必须显示微调器。微调器在果冻豆安卓版上运行良好。但是在更高版本上失败了。任何人都可以帮我这个吗?
function Invoke-Build {
[CmdletBinding()]
Param(
[Parameter(Mandatory=$True,ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)]
[string[]]$directories
)
Begin { Write-Output "Starting" }
Process {
Set-Location $_
build
Set-Location ..
}
End { Write-Output "Done" }
答案 0 :(得分:0)
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{
oBusyDialog.open();
}catch(e){
//Error handler
console.log("Busy dialog couldn't be loaded:"+e);
}
注意:在页面刷新时,在调用open()或之前不会加载DOM close()方法,因此将它放在try catch中。