获取table的列和行位置.cellIndex和.rowIndex
$('table').mousedown(function(e){
celindex = $(e.target)[0].cellIndex;
rowindex = $(e.target).parent()[0].rowIndex;
});
.cellIndex对象是<td>.
.rowIndex对象是<tr>.
$('table').mousedown(function(e){
celindex = $(e.target)[0].cellIndex;
rowindex = $(e.target).parent()[0].rowIndex;
});
.cellIndex对象是<td>.
.rowIndex对象是<tr>.