|
|
|
让SortTable和Asp.net Ajax和睦相处(3)http://www.sina.com.cn 2008年07月07日 17:28 《程序员》
第二处: //原始代码 //forEach(theadrow.childNodes, function(cell) { // if (cell.nodeType == 1) { // cell.className = cell.className.replace('sorttable_sorted_reverse',''); // cell.className = cell.className.replace('sorttable_sorted',''); // } // }); //修改代码 for(i=0; i { var cell=theadrow.childNodes[i]; if (cell.nodeType == 1) { // an element cell.className = cell.className.replace('sorttable_sorted_reverse',''); cell.className = cell.className.replace('sorttable_sorted',''); } };
【发表评论 】
不支持Flash
|