您好!
之前的问题好了,现在遇到加载数据的问题。
如下:前端调用一个函数,返回的数据应该是data2:
但是总是报错:
params.success(result.m_Item2, result.m_Item1); 此句就报错 请问这句应该如何修改,还是说调用函数返回部分修改
params.success(data2.m_Item2, data2.m_Item1);//此句不报错
var data2 = { "m_Item1": 11, "m_Item2": [{ "CODE": "03020002001", "DateTime": "2018-04-09 00:00:00", "Indicator": "No.1球磨机给矿端加水流量累积量", "SortTag": "001", "RID": 3, "A_Shift": 0, "B_Shift": 0, "C_Shift": 0, "Day": 0, "Month": 0, "Year": 0 }, { "CODE": "03020002002", "DateTime": "2018-04-09 00:00:00", "Indicator": "No.1球磨机排矿端加水流量累积量", "SortTag": "002", "RID": 3, "A_Shift": 0, "B_Shift": 0, "C_Shift": 0, "Day": 0, "Month": 0, "Year": 0 }, { "CODE": "03020002003", "DateTime": "2018-04-09 00:00:00", "Indicator": "No.1球磨机返砂加水流量累积量", "SortTag": "003", "RID": 3, "A_Shift": 0, "B_Shift": 0, "C_Shift": 0, "Day": 0, "Month": 0, "Year": 0 }, { "CODE": "03020002004", "DateTime": "2018-04-09 00:00:00", "Indicator": "No.2球磨机给矿端加水流量累积量", "SortTag": "004", "RID": 3, "A_Shift": 0, "B_Shift": 0, "C_Shift": 0, "Day": 0, "Month": 0, "Year": 0 }, { "CODE": "03020002005", "DateTime": "2018-04-09 00:00:00", "Indicator": "No.2球磨机排矿端加水流量累积量", "SortTag": "005", "RID": 3, "A_Shift": 0, "B_Shift": 0, "C_Shift": 0, "Day": 0, "Month": 0, "Year": 0 }, { "CODE": "03020002006", "DateTime": "2018-04-09 00:00:00", "Indicator": "No.2球磨机返砂加水流量累积量", "SortTag": "006", "RID": 3, "A_Shift": 0, "B_Shift": 0, "C_Shift": 0, "Day": 0, "Month": 0, "Year": 0 }, { "CODE": "03020002007", "DateTime": "2018-04-09 00:00:00", "Indicator": "No.3球磨机给矿端加水流量累积量", "SortTag": "007", "RID": 3, "A_Shift": 0, "B_Shift": 0, "C_Shift": 0, "Day": 0, "Month": 0, "Year": 0 }, { "CODE": "03020002008", "DateTime": "2018-04-09 00:00:00", "Indicator": "No.3球磨机泵池补加水流量累积量", "SortTag": "008", "RID": 3, "A_Shift": 0, "B_Shift": 0, "C_Shift": 0, "Day": 0, "Month": 0, "Year": 0 }, { "CODE": "03020002009", "DateTime": "2018-04-09 00:00:00", "Indicator": "No.1球磨机用水流量累积量", "SortTag": "009", "RID": 3, "A_Shift": 0, "B_Shift": 0, "C_Shift": 0, "Day": 0, "Month": 0, "Year": 0 }, { "CODE": "03020002010", "DateTime": "2018-04-09 00:00:00", "Indicator": "No.2球磨机用水流量累积量", "SortTag": "010", "RID": 3, "A_Shift": 0, "B_Shift": 0, "C_Shift": 0, "Day": 0, "Month": 0, "Year": 0 }, { "CODE": "03020002011", "DateTime": "2018-04-09 00:00:00", "Indicator": "No.3球磨机用水流量累积量", "SortTag": "011", "RID": 3, "A_Shift": 0, "B_Shift": 0, "C_Shift": 0, "Day": 0, "Month": 0, "Year": 0 }] } |