for in 中的index

自己学艺不精。。。

数据是个对象,想要里面的key

原来 for (item, index) in items 中的index 就是key

原文地址:https://www.cnblogs.com/aimeeblogs/p/9535498.html