摘要: 1,First of all, we should have a wrapper class for page,this class can calculate the startRow by the number of result,pageSize,and currentPage.public class Pager extends BaseBO { private static final int DEFAULT_PAGE_SIZE = 10; private int totalRows; private int pageSize = 10; private in... 阅读全文
posted @ 2013-09-05 23:18 Little_cheeper 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 首先分析下disable ,display和readonly:1,Readonly只针对input(text / password)和textarea有效,而disabled对于所有的表单元素都有效,包括select, radio, checkbox, button等。2,表单元素在使用了disabled后,当我们将表单以POST或GET的方式提交的话,这个元素的值不会被传递出去。3,.style="display:none" 用了隐藏页面标签。项目中要求用户不能二次更改所有select选项。通过查资料发现最好的做法是,把所有select置为disable,然后在用户提交的 阅读全文
posted @ 2013-09-05 22:06 Little_cheeper 阅读(2372) 评论(0) 推荐(0) 编辑