<input type="button" onclick="getIndex(this)"/> var getIndex=function(obj) { var td=obj.parentNode; alert("列:"+td.cellIndex);//索引从0开始 alert("行:"+td.parentNode.rowIndex); }
8.7w+
社区成员
22.4w+
社区内容