frameset如何通过左边的菜单menu里面的按钮来控制改变中间的workspace里面所呈现的内容啊?可以举个简单的代码例子吗?
下面是我的index.jsp代码:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "😕/" +
request.getServerName() + ":" +
request.getServerPort() + path;
%>
<html>
<head>
<title>梦想试衣间</title>
<script type="text/javascript" src="<%=basePath%>/js/jquery.min.js"></script>
</head>
<frameset rows="70px," border="0">
<frame src="<%=basePath%>/jsp/banner.jsp" />
<frameset cols="140px," border="1">
<frame src="<%=basePath%>/jsp/menu.jsp" />
<frame id="workspace" src="<%=basePath%>/jsp/workspace.jsp" />
</frameset>
</frameset>
</html>
这是项目的index.jsp的页面截图: