ngFor 循环带索引

*ngFor="let item of userList,let i = index"
 
或者
*ngFor="let item of userList index as i"

猜你喜欢

转载自www.cnblogs.com/yuyedaocao/p/10274848.html
今日推荐