我想知道如何在数组的元素之间放置逗号,而行的末尾没有逗号。有类似的问题,但我有点不同,因为我使用*ngFor指令来显示文本:
<span *ngFor="let style of styles">
{{style}} //If I put a comma after the text, there would be a comma at the end of the line after the
//last element was displayed
<span>
解决我的问题的方法是什么?
小唯快跑啊
呼如林
相关分类