<table id="table_header"> <tr> <td>a</td> <td>b</td> <td>c</td> </tr> </table>
谢谢。
$("td:contains('c')").html("new");
或者更确切地说,$(“#table_headers td:contains(‘c’)”)。html(“new”);
也许为了重用,你可以创建一个调用的函数
function ReplaceCellContent(find,replace) { $("#table_headers td:contains('" + find + "')").html(replace); }