转自 http://blog.csdn.net/xueshijun666/article/details/18151055 // var ret = $("#in_store_list_details_grid_table").getChangedCells('dirty'); // Returns the changed cells. // var ret = $("#in_store_list_details_grid_table").getChangedCel
可以先判断单元格的类型,有的日期是字符串存储的,有的是按日期存储的(单元格按数字解析),代码如下: Cell cell = row.getCell(); Date date = null; if (cell.getCellType() == CellType.STRING){ //按字符串转换日期 } else if (cell.getCellType() == CellType.NUMERIC) { date = cell.getDateCellValue(); }