大哥们帮忙看看,下面是jsp代码
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../plugins/easyui/themes/bootstrap/easyui.css"/>
<link rel="stylesheet" type="text/css" href="../plugins/easyui/themes/icon.css"/>
<link rel="stylesheet" type="text/css" href="../plugins/easyui/themes/color.css"/>
<link rel="stylesheet" type="text/css" href="../plugins/easyui/demo/demo.css"/>
<script type="text/javascript" src="../plugins/easyui/jquery.min.js"></script>
<script type="text/javascript" src="../plugins/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../plugins/easyui/local/easyui-lang-zh_CN.js"></script>
<style type="text/css">
</style>
</head>
<body>
<table id='grid' class='easyui-datagrid' style='width:1100px;height:500px'
title='用户列表' iconCls='icon-table' rownumbers='true' fitColumns='true' singleSelect='true' toolbar='#toolbar' >
<thead>
<tr>
<th field='id' width='50' align='center'>id</th>
<th field='name' width='70'align='center'>name</th>
</tr>
</thead>
</table>
</body>
<script type="text/javascript">
var obj = {"total":2,"rows":[{id:"1",name:"一"},{id:"2",name:"二"}]};
$('#grid').datagrid('loadData',obj);
</script>
</html>
使用load也不显示出来,不知道该怎么做了