1、在当前页面上跳转新页面
window.open('#要载入的界面');
window.open('graphReportController.do?list&id=dzdxz');
window.open('webpage/com/nuist/singleStationInfo/stationInfoTab.jsp');
οnclick="javascript:window.open('webpage/com/nuist/singleStationInfo/stationInfoTab')"
2、当前页面外跳转出新页面
window.location.href = "#要跳转的页面";
window.location.href = "graphReportController.do?list&id=dzdxz";
window.location.href = 'webpage/com/nuist/singleStationInfo/stationInfoTab';
3、页面指定div区域加载完整新页面
法一:
$("#div").load('#要加载的页面');
$("#tabSide").load('graphReportController.do?list&id=dzdxz');
法二:
<iframe src="#要载入的页面" width="1480px" height="630px" style="overflow: hidden; border:none;"></iframe>
<div class="tabSide active" >
<iframe src="../../../../graphReportController.do?list&id=dzdxz" width="1480px" height="630px" style="overflow: hidden; border:none;"></iframe>
</div>