摘要: 同一页面a.">b.不同页面: 在action.jsp中:a. b. 阅读全文
posted @ 2013-09-03 11:54 new PersonBean() 阅读(210) 评论(0) 推荐(0) 编辑
摘要: $(function() { $("#gridTable").jqGrid({ url: "file", postData:{}, datatype: "json", mtype: "GET", rownumbers: false, rowNum:, autowidth: f... 阅读全文
posted @ 2013-08-30 16:47 new PersonBean() 阅读(510) 评论(0) 推荐(0) 编辑
摘要: setInterval("showTime()",1000);function showTime(){ var date = new Date(); var year = date.getFullYear(); //获取完整的年份(4位,1970-????) var month = date.getMonth() + 1; //获取当前月份(0-11,0代表1月) var da = date.getDate(); //获取当前日(1-31) var day ... 阅读全文
posted @ 2013-08-30 14:49 new PersonBean() 阅读(799) 评论(0) 推荐(0) 编辑
摘要: //jqGrid去除某个单元格样式class$("td[aria-describedby='GridTableName_indexName']","#GridTableName").eq(i).removeClass("className");//jqGrid 在某个单元格添加按钮var ButtonNameHtml = '';$("#GridTableName").setCell(ids[i], "ButtonName", ButtonNameHtml);$(& 阅读全文
posted @ 2013-08-30 10:21 new PersonBean() 阅读(165) 评论(0) 推荐(0) 编辑
摘要: //获取一行var rowData = $("#nkinGridTable").jqGrid("getRowData",rowId);//获取某个单元格的数据var nkinKINsum = rowData.nkinKINsum; 阅读全文
posted @ 2013-08-30 09:39 new PersonBean() 阅读(547) 评论(0) 推荐(0) 编辑
摘要: import java.math.BigDecimal;import java.text.DecimalFormat;import java.text.NumberFormat;public class format { double f = 111231.5585; public void m1() { BigDecimal bg = new BigDecimal(f); double f1 = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); System.out.print... 阅读全文
posted @ 2013-08-28 17:25 new PersonBean() 阅读(315) 评论(0) 推荐(0) 编辑
摘要: InputStream in = PropReader.class.getClassLoader().getResourceAsStream(StaticFinal.CONFIG_PATH); 其中StaticFinal.CONFIG是字符串常量,指定properties的文件名 阅读全文
posted @ 2013-08-27 17:02 new PersonBean() 阅读(123) 评论(0) 推荐(0) 编辑