11 2010 档案

摘要:JS如下:var TableUtil = new Object();TableUtil.Convert = function(sValue,sDataType){ switch(sDataType) { case "int": return parseInt(sValue); case "float": return parseFloat(sValue); case "date": return ... 阅读全文
posted @ 2010-11-26 17:59 Vihone 阅读(246) 评论(0) 推荐(0)
摘要:JS如下:TableUtil.Convert = function(sValue,sDataType){ switch(sDataType) { case "int": return parseInt(sValue); case "float": return parseFloat(sValue); case "date": return new Date(Date.parse(sValue));... 阅读全文
posted @ 2010-11-26 16:39 Vihone 阅读(217) 评论(0) 推荐(0)
摘要:方法一:JS如下://保存为JScript1.js文件TableUtil.generateReverseCompareTRs = function(iCol){ return function compareTRs(oTR1,oTR2) { //var flag = document.getElementById("tempFlag").value; var sValue1 = oTR1.cel... 阅读全文
posted @ 2010-11-25 10:35 Vihone 阅读(695) 评论(0) 推荐(0)
摘要:JS如下:var TableUtil = new Object();TableUtil.compareTRs = function(oTr1,oTr2){ var flag = document.getElementById("tempFlag").value; var sValue1 = oTr1.cells[0].firstChild.nodeValue; var sValue2 = oTr... 阅读全文
posted @ 2010-11-25 09:28 Vihone 阅读(293) 评论(0) 推荐(0)
摘要:JS如下:var TextUtil = new Object();var ListUtil = new Object();ListUtil.remove = function(oListbox,iIndex){ oListbox.remove(iIndex);}ListUtil.clear = function(oListbox){ for(var i = oListbox.options.len... 阅读全文
posted @ 2010-11-24 14:12 Vihone 阅读(1799) 评论(0) 推荐(0)