0
這是我的HTML如何獲得iframe的readyState的
<div ng-if="isLoadDone" class="col-xs-12">
<div class="text-center"><span class="fa fa-spinner fa-pulse fa-5x fa-fw margin-bottom"></span></div>
</div>
<iframe id="appId" ng-if="isLoadDone" class="app-iframe" ng-src="{{trustedApplUrl}}"></iframe>
而且在javascript:
$elem = angular.element('#appId');
在調試控制檯
$elem show as
context:document
.......
readyState: "complete"
我不知道如何獲得的readyState通過使用$ elem $ elem.context.document.readyState不起作用。不知道如何使用$ ELEM 感謝
add a onload =「alert('Loaded!');」到您的內聯框架HTML。 – user6245342