使用 jQuery 将 th 添加到表的 thead 中的 tr

Rod*_*Rod -2 jquery

如何使用 jQuery 添加<th><thead>内容

<table id="table">
  <thead>
    <tr>
      <th>First</th>
    </tr>
  <thead>
</table>
Run Code Online (Sandbox Code Playgroud)

nXu*_*nXu 5

使用jQuery 附加方法。

$("#table>thead>tr").append("<th>Second</th>");
Run Code Online (Sandbox Code Playgroud)