【发布时间】:2019-03-12 15:33:49
【问题描述】:
我是第一次使用 Angular,我正在尝试显示一些数据。数据在一个数组中
[我,三,四]
我正在尝试循环打印数据,但它不起作用。目前,我正在这样做
<ng-container matColumnDef="channel">
<th mat-header-cell *matHeaderCellDef> Channel </th>
<td mat-cell *matCellDef="let element"> {{element.channel}} </td>
</ng-container>
我在专栏上得到的是这个
[我,三,四]
channel: "[ME, WE, US]"
end: "2018-03-29T08:00:00Z"
states: "[NY, Non-NY]"
start: "2018-03-29T08:00:00Z"
trans: "[Act:Add]"
如何从数据中删除 []?谢谢
【问题讨论】: