【发布时间】:2018-10-22 16:10:16
【问题描述】:
我创建了一个 Preact 网站:https://alwaysselector-2d06f.firebaseapp.com/,另一个网站允许我在他们的“contentDiv”中上传内容。
<div id="contentDiv">
//what should I put here?
</div>
我的问题是我不知道在 div 中放什么。我不想使用 iFrame,因为在某些情况下我的外部网站高度可能会有所不同。因此,
<iframe src='https://alwaysselector-2d06f.firebaseapp.com/' />
不会工作。从我的外部网站获取所有 html 以在 contentDiv 中加载的最简单方法是什么?
【问题讨论】:
标签: preact