【发布时间】:2021-07-18 22:47:25
【问题描述】:
当我按下保存按钮以使用 vue 存储在变量中时,我想获取 'th' 和 'td' 的标题
我的 HTML 代码
<tr>
<th>Himalayan Salajit (Pakistan Only)*</th>
<td>PKR 800</td>
<td class="text-center">
<select class="form-control form-control-inline">
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select>
</td>
<td class="text-right">PKR 0.00</td>
</tr>
【问题讨论】:
-
这能回答你的问题吗? How to get a table cell value using jQuery?
-
你想得到 first th 和 td 的标题还是 all?
-
@shahidiqbal all
标签: vue.js