Jquery 使用ColResizeble插件需要知道调整了哪个列标题的大小

Jquery 使用ColResizeble插件需要知道调整了哪个列标题的大小,jquery,jquery-plugins,Jquery,Jquery Plugins,如何获取重新调整大小的列的索引?调整大小是可行的,但我在e.currentTarget中找不到索引或其他标题相关信息 var onResized = function (e) { console.log('E: ', e); // reference to the resized table var table = $(e.currentTarget); console.log('************** what is table?', table)

如何获取重新调整大小的列的索引?调整大小是可行的,但我在e.currentTarget中找不到索引或其他标题相关信息

var onResized = function (e) {

    console.log('E: ', e);

    // reference to the resized table
    var table = $(e.currentTarget);
    console.log('************** what is table?', table)
    var thisRow = table.find('thead tr');
    console.log('************** what is thisRow?', thisRow)
    var thisHere = thisRow.closest('th').index();
    console.log('************** what is here?', thisHere)
};

bindgrid.find('.grid-header-table').colResizable({
    liveDrag: true,
    onResize: onResized
});

根据中报告的描述,您可以获得有关引发调整大小事件的夹点(用于调整大小的列分隔符)的信息

如果表包含3列,则可以获得值:0或1。这意味着您只能知道您是在操作/调整前两列还是最后两列

该值为:

$(e.target).parent().index()
在下面的代码段中:

$(函数(){
$(“#样本”).colresizeable({
真的,
onResize:函数(e){
var table=$(e.currentTarget);//对已调整大小的表的引用
警报('表夹点索引:'+$(e.target).parent().index());
}
});
});
正文{
背景色:白色;
文本对齐:居中;
填充:55px;
}
.中心{
文本对齐:左对齐;
}
#桌子{
宽度:100%;
最大宽度:1600px;
}
th{
边框顶部:1px实心#2e638e;
左边框:1px实心#2e638e;
边框底部:1px实心#2e638e;
右边框:1px实心#2e638e;
高度:30px;
颜色:白色;
文本阴影:#012b4d 2px 2px 2px;
文本对齐:居中;
}
运输署{
文本缩进:5px;
颜色:#444;
边框底部:1px实心#bbb;
左边框:1px实心#bbb;
}
td.左{
左边框:1px实心#2e638e;
}
对{
右边框:1px实心#2e638e;
}
td.bottom{
边框底部:1px实心#2e638e;
}
标签{
颜色:#0361ae;
}



标题 标题 标题 细胞 细胞 细胞 细胞 细胞 细胞 细胞 细胞 细胞
该文档调用了e.currentTarget,不确定我在e.target中找到它需要多长时间。