js跳转新页面,指定div加载新页面

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');
法二:







你可能感兴趣的:(js)