ngFor 循环带索引

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

转载于:https://www.cnblogs.com/yuyedaocao/p/10274848.html

你可能感兴趣的:(ngFor 循环带索引)