angular js $index的作用?track by $index?
4 回答
已采纳

FSYu
TA贡献152条经验 获得超59个赞
$index只在ng-repeat中起作用,它的作用是获取当前标签的索引值。除了$index外还有$first,$middle,$last,$even,$odd
添加回答
举报
0/150
提交
取消