关于数组的取值,cannot read property 'uid' of undefined

如图:

console.log("uid==="+userList[i].uid);打印出数据了,但下面字符串拼接时却报uid不认识。

原因:for循环没有写循环条件。。。。。或者没有数组越界。

参考地址:https://blog.csdn.net/u012118993/article/details/70792534

发布了27 篇原创文章 · 获赞 0 · 访问量 605

猜你喜欢

转载自blog.csdn.net/qq_40209717/article/details/102978297