运行时候会报错,Uncaught TypeError: Cannot read property 'liClick' of undefined

解决办法,不要在map的时候进行return。而是先将map的结果保存到一个变量,然后return这个变量。这样就可以了

运行时候会报错,Uncaught TypeError: Cannot read property 'liClick' of undefined

解决办法,不要在map的时候进行return。而是先将map的结果保存到一个变量,然后return这个变量。这样就可以了

1万+

被折叠的 条评论
为什么被折叠?
