摘要: ①:@RequestMapping("/helloworld")、@RequestMapping(value="/emp", method=RequestMethod.GET) 写在类上可用于区分模块 写在方法上可指定请求的方法 带method=RequestMethod.GET:可以指定请求的方法 阅读全文
posted @ 2016-02-17 16:58 DMC_HZP 阅读(198) 评论(0) 推荐(0) 编辑
摘要: ①springMVC必备jar包: commons-logging-1.1.3.jar spring-aop-4.0.0.RELEASE.jar spring-beans-4.0.0.RELEASE.jar spring-context-4.0.0.RELEASE.jar spring-core-4 阅读全文
posted @ 2016-02-17 15:59 DMC_HZP 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1. $("#dg").datagrid("load",{ "userName":$("#s_userName").val() }); 数据表的load方法,用于加载数据,后面可以写上参数,格式为:{"参数名":参数值,"":""}中间用逗号分开 2.$("#dlg").dialog("open") 阅读全文
posted @ 2016-02-17 15:32 DMC_HZP 阅读(298) 评论(0) 推荐(0) 编辑
摘要: ①table: 1.class="easyui-datagrid":指定为easyUI的表格布局 2.pagination="true":带分页的表格 3.rownumbers="true":表格带行号 4.toolbar="#tb":指定工具条,可以设定一个div布局为工具条 5.fit="tru 阅读全文
posted @ 2016-02-17 15:20 DMC_HZP 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 首先前台会传来两个参数,分别是rows(一页数据的大小,即一页有多少条数据)和page(第几页),根据这两个参数可以计算出从数据库中从第几条数据开始取和要取多少条数据。数据取出来后,因为easyUI用的是ajax分页,因此要对数据进行一些处理,第一:把数据转化为jsonArray的形式,再把数据放到 阅读全文
posted @ 2016-02-16 20:10 DMC_HZP 阅读(257) 评论(0) 推荐(0) 编辑