//首次取出数据
if (that.data.panduan) { jieguo1 = data.data.song.list}
//取出后添加数据
else
{ jieguo1 = (that.data.jiegou).concat(data.data.song.list)}
控制台能成功接收到返回的信息,但是执行else的时候错误了是怎么回事,进不去else赋值。
{code: 0, data: {…}, message: “”, notice: “”, subcode: 0, …}code: 0data: keyword: "周杰伦"priority: 0qc: []semantic: {curnum: 0, curpage: 2, list: Array(0), totalnum: 0}song: curnum: 15curpage: 2list: Array(15)
错误信息提示在下面。说concat未定义。我还是不知道错误的地方在哪里
WAService.js:3 thirdScriptError
Cannot read property ‘concat’ of undefined;at App getInfo function;at api request success callback function
TypeError: Cannot read property ‘concat’ of undefined