摘要:有时候需要在页面上对list排序,虽然也可以在后台代码中完成,但这个可能要看具体情况。排序的样本代码如下:.............................................monthlyViewedCount是list中对象的属性。默认情况下是升序,如果你要降序:.........
阅读全文
posted @ 2014-10-15 09:59
|
|
|
10 2014 档案
摘要:有时候需要在页面上对list排序,虽然也可以在后台代码中完成,但这个可能要看具体情况。排序的样本代码如下:.............................................monthlyViewedCount是list中对象的属性。默认情况下是升序,如果你要降序:.........
阅读全文
posted @ 2014-10-15 09:59
摘要:Spring MVC提供了一种方便的Bean填充方式:@Controllerpublic class CmsChannelController extends AbstractController{ public String saveAction(Model model, ...
阅读全文
posted @ 2014-10-13 17:40
|
|