我想使用“添加行”按钮在表中添加行,并在提交时以表格数据的形式获取每一行数据。请帮忙。
`<tr>
<td *ngFor="let rowfields of list2['data']">
<input [type]="rowfields?.type =='upload' ? 'file' : rowfields?.type" class="form-control" [name]="rowfields?.variable + (rowfields?.type =='radio' ? 'radio' :'' )" (change)="rowfields?.type =='radio' ? handleChange($event) : handleChange()" ngModel>
</td>
<td>
<button class="btn btn-default btn-add" type="button" (click)="addFieldValue()">+</button>
</td>
</tr>`