每天都有这个错误记录,
undefined is not an object (evaluating 'e.$children[0].tabbarbool');at pages/cats/cats onLoad function;at setTimeout callback function
https://usr//pages/cats/app-service.js:2400:14655
https://lib/WAServiceMainContext.js:2:127503
https://lib/WASubContext.js:2:92717
https://lib/WASubContext.js:2:99161
undefined is not an object (evaluating 'i.name')
https://usr//pages/quick-shop/app-service.js:1301:6286
t@https://lib/WASubContext.js:2:65881
https://lib/WASubContext.js:2:66003
e@https://lib/WASubContext.js:2:68459
https://lib/WASubContext.js:2:32672
r@https://lib/WASubContext.js:2:32371
https://lib/WAServiceMainContext.js:2:128111
https://lib/WASubContext.js:2:93040
https://lib/WASubContext.js:2:99554
应该是你返回的数据children[0].tabbarbool可能存在异常导致的
你可能直接使用这个对象的属性实际却没有这个对象,使用的时候可以先判断undefined这样可以减少很多空报错
若有帮助请帮忙点个"有用"谢谢↓↓