0
如何顯示加載應用程序內瀏覽器頁面時的加載? 我嘗試使用這種方法:Cordova插件(應用程序內瀏覽器)
ref.addEventListener('loadstart', function(event) {
ionicLoaderService.show();
})
但裝載彈出窗口位於瀏覽器的後面。
如何顯示加載應用程序內瀏覽器頁面時的加載? 我嘗試使用這種方法:Cordova插件(應用程序內瀏覽器)
ref.addEventListener('loadstart', function(event) {
ionicLoaderService.show();
})
但裝載彈出窗口位於瀏覽器的後面。
我使用這種方法。這不是100%我正在尋找,但看起來不錯。 它會首先顯示加載彈出窗口,並等待頁面加載完成後纔會顯示瀏覽器。
ref.addEventListener('loadstart', function(event) {
ionicLoaderService.show();
});
ref.addEventListener('exit', function(event) {
ionicLoaderService.hide();
});
ref.addEventListener('loadstop', function(event) {
ref.show();
if (event.url.match("result")) {
accountCreditService.updateLocalBalance()
ref.close();
}
});