第一步
导入easyUI的js插件:datagrid-detailview.js
<!-- detagrid嵌套子表单,注意:一定要放到easyUI和JQuery的后面 -->
<script type="text/javascript" src="static/js/datagrid-detailview.js"></script>
第二步
用js方式创建datagrid
jsp代码:
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":"+request.getServerPort()+ path + "/";
%>
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- easyUI的依赖js代码导入都在里面 -->
<%@ include file="/WEB-INF/views/common/common.jsp"%>
<!-- detagrid嵌套子表单 -->
<script type="text/javascri