问题描述
我处于一个.html
文件中,其中包含某些脚本的情况。该文件指向某些javascript文件。该单独的模块是一个单独的应用程序,我无法将其转换为精简的应用程序。我所做的是,将文件导入到我的瘦应用程序的public
目录中,并将.html
文件加载到iframe
中,效果很好。我只是在寻找一种解决方案,该解决方案无论如何都可以将.html
文件指向或插入到组件中,并且我当然摆脱了iframe。
我的Svelte组件
<script lang="ts"></script>
<style>
iframe {
width: 100vw;
height: 100vh;
border: none;
}
</style>
<svelte:head>
<!-- fallback title. In the future this will just be the filename of the pdf currently being viewed. -->
<title>Vidy Pdf Viewer</title>
</svelte:head>
<iframe src="./pdfjs-dist/web/viewer.html" title="viewer" />
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)