我正在创建iframe
以便打印来自Azure Blob存储的PDF。该PDF已正确加载,但是由于任何原因,它具有src
属性,但没有body
属性:
<iframe class="pdf-viewer" ng-if="f.isIframeable"
src="https://docs.google.com/viewer?embedded=true&url=httpsmypdfurl.pdf">
#document
<head></head>
<body></body>
</iframe>
iframe的原始代码:
<iframe class="pdf-viewer" ng-if="f.isIframeable" src="{{f.url | srcViewer}}">
</iframe>
即使我的src是正确的,为什么还会发生这种情况?我该如何尝试重新加载它或确保其正常工作?