1.提醒:
后台用 json-lib.jar来做吧,你这么做出来的引号和细节很容易出错的。
2.easyui-datagrid:
easyui的datagrid返回值里面需要一个{"rows":""}这样类型的json对象,你可以参考下demo里面的datagrid.json 里面的帮助文档很详细
后台用 json-lib.jar来做吧,你这么做出来的引号和细节很容易出错的。
2.easyui-datagrid:
easyui的datagrid返回值里面需要一个{"rows":""}这样类型的json对象,你可以参考下demo里面的datagrid.json 里面的帮助文档很详细
解决方案 »
- 求助啊~~jsp怎么播放amr格式的音乐
- poi向模板excel写入图片后,导出的excel打开后,提示文件错误,数据可能丢失
- weblogic10.3部署s2sh项目
- 怎么用websphare来打包成war
- WebLogic下的jsp页面问题! 急
- 按鼠标左键,光标移动到前一个文本框的event.keyCode=???
- IClass classinfo = (IClass)listclass.elementAt(i),为什么前面要加(IClass)?
- 想用jsp,做一个bbs,请大家指教,
- JSP的连接数据库的问题
- 如何高效的替换字符
- 怎么把jsp每次提交的数据放在list<map>中
- 【求助】推荐富文本编辑器
total: data
});
}
{
"rows":[
{"id":"001","name":"Name 1","password":"password 11"}
]
}
前台还是看不到
data-options="rownumbers:true,singleSelect:true,pagination:true,url:'svnlog/listProject.do',method:'get',row:'10,20'">
<thead>
<tr>
<th data-options="field:'name',width:200">工程名字</th>
<th data-options="field:'svnUsername',width:100">用户名字</th>
<th data-options="field:'svnPassword',width:100">用户密码</th>
<th data-options="field:'url',width:300">仓库地址</th>
</tr>
</thead>
</table>
<script type="text/javascript">
$(function(){
var pager = $('#dg').datagrid().datagrid('getPager'); // get the pager of datagrid
pager.pagination({
pageSize: 10,//每页显示的记录条数,默认为10
pageList: [10,20,50],//可以设置每页记录条数的列表
beforePageText: '第',//页数文本框前显示的汉字
afterPageText: '页 共 {pages} 页',
displayMsg: '当前显示 {from} - {to} 条记录 共 {total} 条记录',
buttons:[{
iconCls:'icon-search',
handler:function(){
alert('search');
}
},{
iconCls:'icon-add',
handler:function(){
alert('add');
}
},{
iconCls:'icon-edit',
handler:function(){
var row = $('#dg').datagrid('getSelected');
alert(row.name);
}
}]
});
})
</script>