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