我有以下由软件(Navisworks)生成的 HTML 报告:
<tr class="contentRow">
<td colspan="2" class="contentCell">
<a target="_blank" href="100+200_WS-U2-U1_default-Hard_files\cd000001.jpg ">
<img border="0" width="95" height="95" src="100+200_WS-U2-U1_default-Hard_files\cd000001.jpg">
</a>
<!-- HERE I WOULD LIKE TO INSERT A BUTTON -->
</td>
<td colspan="2" class="contentCell">Clash1</td>
<!-- more td !-->
<td class="item1Content">
<i>Element ID</i>:
509894
</td>
<!-- more contet as td !-->
<td class="item2Content"><i>Element ID</i>:
576096
</td>
<!-- more contet as td !-->
</tr>
<tr class="contentRow">
<td colspan="2" class="contentCell">
<a target="_blank" href="100+200_WS-U2-U1_default-Hard_files\cd000001.jpg ">
<img border="0" width="95" height="95" src="100+200_WS-U2-U1_default-Hard_files\cd000001.jpg">
</a>
<!-- HERE I WOULD LIKE TO INSERT A BUTTON -->
</td>
<td colspan="2" class="contentCell">Clash2</td>
<!-- more td !-->
<td class="item1Content">
<i>Element ID</i>:
509894
</td>
<!-- more contet as td !-->
<td class="item2Content"><i>Element ID</i>:
576096
</td>
<!-- more contet as td !-->
</tr>
我想做以下事情:
<a></a>
在每个标签后添加一个 Button附加一个将收集 ID 的函数
<td class="item1Content"> <i>Element ID</i>: 509894 </td>
和身份证
<td class="item2Content"><i>Element ID</i>: 576096 </td>
并将其复制到剪贴板
有人可以给我一个起点吗?我对 jQuery 很陌生。