1.文件结构:
2.示例:
datagrid.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src="dist/easyui/jquery.min.js" type="text/javascript"></script>
<script src="dist/easyui/jquery.easyui.min.js" type="text/javascript"></script>
<link href="dist/easyui/themes/default/easyui.css" rel="stylesheet" />
</head>
<body>
<table id="dg"></table>
<script type="text/javascript">
$('#dg').datagrid({
url : 'user/page.do',
pagination : true,
columns : [ [ {
field : 'id',
title : '编号'
}, {
field : 'name',
title : '用户名'
} ] ]
})
</script>
</body>
</html>
3.效果:
over.
来源:CSDN
作者:qq2389835815
链接:https://blog.csdn.net/qq2389835815/article/details/103714559