Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
给定每个单元格都有 row, col 属性。我试过类似的东西
$(#mytable tr td row=1 col=1)
但它不起作用
您可以使用first-child或nth-child。例如:
first-child
nth-child
$("#mytable tr:first-child td:first-child") $("#mytable tr:nth-child(1) td:nth-child(1)")