我需要在某个列中拆分一个字段,例如
[A1] [B1] [C1] [D1] [E1]
[A2] [B2] [C2] [D2] [E2]
........
我想将其转换为
[A1] [B1] [C1] [D1] [E1_1|E1_2]
[A2] [B2] [C2] [D2] [E2_1|E2_2]
.....
我的代码的简化片段如下:
<table>
<thead>
<tr>
<th>HEAD_A</th>
<th>HEAD_B</th>
<th>HEAD_C</th>
<th>HEAD_D</th>
<th>HEAD_E</th>
<th>
</tr>
</thead>
<tbody>
<tr ng-repeat="row in myCtrl.rows>
<td>A</td>
<td>B</td>
<td>C</td>
<td>D</td>
<td>E</td>
<td>F</td>
</tr>
</tbody>
</table>
附加要求和关键是为这两列添加标题(这两列嵌套在某些字段中,通过拆分创建)。
你能告诉我怎么做吗?