关于数组的取值,cannot read property 'uid' of undefined
如图:
console.log("uid==="+userList[i].uid);打印出数据了,但下面字符串拼接时却报uid不认识。
原因:for循环没有写循环条件。。。。。或者没有数组越界。
参考地址:https://blog.csdn.net/u012118993/article/details/70792534
...
原创
2019-11-08 18:19:17 ·
3102 阅读 ·
0 评论