vue踩坑笔记: "$index" is not defined

新手踩坑记录:

运行项目报错:"$index" is not defined

vue2.0 在使用v-for获取索引时,需要 v-for=' (nav,index) in navs ' 后面才可以使用

vue1.0使用是直接使用$index,希望其他新入门的同学不要踩坑!!!

原文地址:https://www.cnblogs.com/pfyblog/p/6772729.html