“TypeError: Cannot read properties of undefined (reading ‘length‘)“

记录一个小问题

“TypeError: Cannot read properties of undefined (reading ‘length’)”
解决方案就是

list.item !==undefined && list.item .length>0

猜你喜欢

转载自blog.csdn.net/sxmzhw/article/details/122120934
今日推荐