*ngFor="let item of channelCount | times"
写一个管道限制一下就行,群里JiaYi大佬给的方案
像vue一样v-for="i of 10"
第二种方法
let i = index; *ngIf="index<5"
Angular_ *ngFor时候限制循环次数
阅读 126
2023-03-05
*ngFor="let item of channelCount | times"
写一个管道限制一下就行,群里JiaYi大佬给的方案
像vue一样v-for="i of 10"
第二种方法
let i = index; *ngIf="index<5"
相关推荐
精彩评论(0)