js 实现table表格拖拽和点击表头升降序排序,写的比较乱,用的时候可以把其中的一些模块函数提取出来 样式,由于是可拖拽表格,所以样式 table tr th{cursor:move;} js实现 var arrTh = [];//保存初始每个th位置的数组 $('.Report th').each(function (i, e) { arrTh.push({ 'index': i, 'left': $(e).offset().left }); $('.Report th').eq(i).ap…