加载应用内浏览器时显示加载器
Show a loader when In-App-Browser is getting loaded
如何在应用内浏览器页面加载时显示加载器?
我尝试使用这个方法:
ref.addEventListener('loadstart', function(event) {
ionicLoaderService.show();
})
但是loader是放在浏览器后面的
我用的就是这个方法。这不是我正在寻找的 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();
}
});
如何在应用内浏览器页面加载时显示加载器? 我尝试使用这个方法:
ref.addEventListener('loadstart', function(event) {
ionicLoaderService.show();
})
但是loader是放在浏览器后面的
我用的就是这个方法。这不是我正在寻找的 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();
}
});