如何从同一个iframe加载相同的应用实例?

时间:2018-06-06 11:27:44

标签: javascript jquery html iframe web-applications

我拥有不同网址的旧网络应用程序(标签导航)。 我想在同一个iframe中打开同一个应用的每个网址/标签。问题是,每次iframe加载时,它都会从scrach再次加载应用程序,这意味着它正在创建Web应用程序的新副本。 如果我希望iframe使用之前在iframe中加载的相同实例,该怎么办?虽然我有不同的URL,但它们是相同的应用程序。能以某种方式完成吗?

<iframe src="http://localhost:8080/admin/view1" width="100%" height="150px"/>
<iframe src="http://localhost:8080/admin/view2" width="100%" height="150px"/>
<iframe src="http://localhost:8080/admin/view1" width="100%" height="150px"/>
<iframe src="http://localhost:8080/admin/view3" width="100%" height="150px"/>

0 个答案:

没有答案