在主页面 A页面中有一个JS 是写添加tab的 $('#contentTabs').tabs('add',{
title:"Map:"+node.text,
iconCls:'icon-save',
closable:true,
fit:true,
href:"Iframe.jsp?lon="+lon+"&lat="+lat+"&simID="+node.text,
});传到 Iframe.jsp 只有一个 iframe google地图有跨域访问问题 所以就饶了一圈。<html>
<head>
</head>
<script type="text/javascript" >
window.onload=function()
{
alert("123");
var lon = <%=request.getParameter("lon")%>;
alert(lon);
document.getElementById('Iframe1').setAttribute("src","googleMap.jsp?lon="+lon);
}
</script>
<body>
<iframe id ="Iframe1" style="width:100%; height:100%" ></iframe>
</body>
</html>
再传入googleMap.jsp 中接受 参数。但是怎么第二个页面就不走JS呢? 愁人啊··
title:"Map:"+node.text,
iconCls:'icon-save',
closable:true,
fit:true,
href:"Iframe.jsp?lon="+lon+"&lat="+lat+"&simID="+node.text,
});传到 Iframe.jsp 只有一个 iframe google地图有跨域访问问题 所以就饶了一圈。<html>
<head>
</head>
<script type="text/javascript" >
window.onload=function()
{
alert("123");
var lon = <%=request.getParameter("lon")%>;
alert(lon);
document.getElementById('Iframe1').setAttribute("src","googleMap.jsp?lon="+lon);
}
</script>
<body>
<iframe id ="Iframe1" style="width:100%; height:100%" ></iframe>
</body>
</html>
再传入googleMap.jsp 中接受 参数。但是怎么第二个页面就不走JS呢? 愁人啊··
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货