jsp文件
<%@ page language="java" pageEncoding="UTF-8"%>
<%String contextPath = request.getContextPath();%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Client Side Pagination in DataGrid - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="<%=contextPath %>/resources/easyui/themes/default/easyui.css">
<script type="text/javascript" src="<%=contextPath %>/resources/jquery/jquery.min.18.js"></script>
<script type="text/javascript" src="<%=contextPath %>/resources/easyui/jquery.easyui.min.js"></script>
</head>
<body>
<div style="margin:10px 0;"></div>
<table id="tt">
</table>
<script>
$(function(){
$('#tt').datagrid({
title:'datagrid小例子',
iconCls:'icon-ok',
width:500,
height:320,
pageSize:5,
pageList:[5,10,15,20],
nowrap:false,
striped: true,
collapsible:true,
url:'<%=contextPath %>/cockpit/cockpit_getTestData.action',
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余4页未读,立即下载
- 1
- 2
前往页