ngFor 循环带索引

*ngFor="let item of userList,let i = index"
 
或者
*ngFor="let item of userList index as i"
posted @ 2019-01-15 23:24  雨夜稻草  阅读(6839)  评论(0编辑  收藏  举报