87,907
社区成员
发帖
与我相关
我的任务
分享
$("table td").on("click",function(){
$(this).css("background-color","red");
alert($(this).index());
});
(td.parentNode.rowIndex+1)*每行多少个td+td.cellIndex+1
$("td").click(function(){
alert(($("td").index($(this))));
});