问题描述:
Cannot read property 'setData' of null;at pages/timeline/timeline onLoad function;at api getSystemInfo success callback function;TypeError: Cannot read property 'setData' of null
解决办法:
在回调中对data进行赋值,不能直接用this.setData;
比如:let _this=this;
_this.setData();这样就可以解决错误