jqGrid模板
摘要:$(function() { $("#gridTable").jqGrid({ url: "file", postData:{}, datatype: "json", mtype: "GET", rownumbers: false, rowNum:, autowidth: f...
阅读全文
posted @
2013-08-30 16:47
new PersonBean()
阅读(516)
推荐(0)
js控制在页面显示时间,每秒更新一次
摘要: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()
阅读(863)
推荐(0)
jquery随笔
摘要://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()
阅读(173)
推荐(0)
jqGrid获取一行数据的方法
摘要://获取一行var rowData = $("#nkinGridTable").jqGrid("getRowData",rowId);//获取某个单元格的数据var nkinKINsum = rowData.nkinKINsum;
阅读全文
posted @
2013-08-30 09:39
new PersonBean()
阅读(567)
推荐(0)
Java保留两位小数
摘要: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()
阅读(320)
推荐(0)
关于Java-web里面properties的路径问题
摘要:InputStream in = PropReader.class.getClassLoader().getResourceAsStream(StaticFinal.CONFIG_PATH); 其中StaticFinal.CONFIG是字符串常量,指定properties的文件名
阅读全文
posted @
2013-08-27 17:02
new PersonBean()
阅读(135)
推荐(0)