Screen cell with special fonts, special fonts can not click on the row and column numbers can not be solution

         function TabClick() {
             var td = event.srcElement;
             var rowId = "";
             var colId = "";
             // 点击特殊字体时rowIndex == undefined
             if (td.parentElement.rowIndex == undefined || td.cellIndex == undefined) {
                 rowId = td.parentElement.parentElement.rowIndex;
                 colId = td.parentElement.cellIndex;
             } else {
                 rowId = td.parentElement.rowIndex;
                 colId = td.cellIndex;
             }

 

             document.getElementById("content_content_content_RowId").innerText = rowId;
             document.getElementById("content_content_content_ColId").innerText = colId;
             document.getElementById("content_content_content_GetCellDetailValue").click();

         }

 

        

Guess you like

Origin blog.csdn.net/wxmwzz/article/details/91554331