VUE2—IFrame引用静态页面

将静态页面拷贝到public文件夹

引入静态页面

<iframe ref="iframe" id="content" src="amisIndex.html"></iframe>

注意:不需要使用相对路径(../public/amisIndex.html),否则会导致找不到html页面。

留下评论

您的邮箱地址不会被公开。 必填项已用 * 标注