var cols = $('.x-table tr').length
var rows = $('.x-table td[col=0]').length
//表格行数
var rows1 = document.getElementById("0").rows.length;
//表格列数
var cols1 = document.getElementById("0").rows.item(0).cells.length;
var cols1 = document.getElementById("0").rows[0].cells.length
var rows2 = $('.x-table tr').length
var cols2 = $('.x-table tr').eq(0).children('td').length
var find = document.getElementById("0").rows[0].cells[5].innerHTML
var arr = document.getElementById("0").rows.item(0).cells
for (var i = 0; i < arr.length; i++) {
if (arr[i].innerText == "姓名") {
break;
}
}
alert(rows2 + " " + cols2 + " " + find + " " + i + " " + arr[3].innerHTML);