$(document).ready(function () {
            $("table td").click(function () {
                var tdSeq = $(this).parent().find("td").index($(this)[0]);
                var trSeq = $(this).parent().parent().find("tr").index($(this).parent()[0]);

                alert("第" + (trSeq + 1) + "行,第" + (tdSeq + 1) + "列");
            });
        })

相关文章:

  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
  • 2021-12-10
猜你喜欢
  • 2021-12-05
  • 2021-12-28
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案