03 2012 档案

摘要://表格列排序的js方法://1.比较函数: //参数说明:列索引,列数据类型function generateCompareTRs(iCol, sDataType) { return function compareTRs(oTR1, oTR2) { var vValue1 = convert(oTR1.cells[iCol].firstChild.nodeValue, sDataType); var vValue2 = convert(oTR2.cells[iCol].firstChild.nodeValue, sDataType); if (vValue1 < vValue2) { 阅读全文
posted @ 2012-03-09 23:59 误会僧 阅读(336) 评论(0) 推荐(0) 编辑