答案 0 :(得分:0)
最后我得到答案,这是代码:
.run(function($ionicPlatform, $window) {
$ionicPlatform.ready(function() {
var i = 0;
$window.iframeLoaded = function () {
console.log('value of i: '+i);
if(i === 1) {
// something todo
}
i++;
};
});
})
HTML:
<iframe ng-src="{{frameUrl}}" onLoad="iframeLoaded()">
Something was wrong!.
</iframe>