Commit 362435cc authored by 赵桢's avatar 赵桢

默认列表

parent bdb7a457
...@@ -97,11 +97,12 @@ ...@@ -97,11 +97,12 @@
// 将 session ID 保存到浏览器的 sessionStorage 中 // 将 session ID 保存到浏览器的 sessionStorage 中
var sessionId = "<%=request.getSession().getId()%>"; var sessionId = "<%=request.getSession().getId()%>";
sessionStorage.setItem("sessionId", sessionId); sessionStorage.setItem("sessionId", sessionId);
// 构造 URL // 构造 URL
<%--var url = "http://localhost:8081/#/one?session=" + <%=request.getAttribute("SESSION")%> +"&realID=" + <%=request.getSession().getAttribute("realID")%>;--%> var session='<%=request.getAttribute("SESSION")%>';
var url = "http://localhost:8081/#/one?session=<%=request.getAttribute("SESSION")%>" var url = "http://localhost:8081/#/one?session="+session+"&realID="+createId;
<%--var url = "http://localhost:8081/#/one?session=<%=request.getAttribute("SESSION")%>"--%>
// 创建 iframe // 创建 iframe
alert(url)
var iframe = $('<iframe width="100%" height="100%" src="' + url + '"></iframe>'); var iframe = $('<iframe width="100%" height="100%" src="' + url + '"></iframe>');
// 将 iframe 添加到页面中 // 将 iframe 添加到页面中
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment