81,092
社区成员
发帖
与我相关
我的任务
分享
//获得表头名称
function CheckTotal(textBoxObj) {
var trNode = textBoxObj.parent().parent();
var tabList=new Array();
$("#grid").find('th').each(function (thindex, thitem) { //遍历Table grid的th
var headCaption = $(thitem).text();
if (headCaption != "") {
tabList.push(headCaption);
}
});
// console.log('数组:',tabList);
return tabList;
}
可以参考这个