整行交换

原文见:针对moveRow方法存在移动行checkbox值丢失问题的解决
示例1
test1.htm

示例2(数组的shift方法:移除数组中的第一个元素并返回该元素)
test2.htm


也可以通过:
var oldrow = tbody.removeChild(tr1);
tbody.insertBefore(oldrow, tr2);
进行正行交换

posted on 2006-07-21 07:57  小肠与小豆子  阅读(210)  评论(0)    收藏  举报

导航