var params={};
$.each(that.meetArrangeList, function(index1, val1) {
$.each(val1.child, function(index2, val2) {
$.each(val2.child, function(index3, val3) {
...
params["arrange["+index1+"].id"]=val3.meetID;
...
});
});
});
meetID this attribute is sometimes missing, and the browser does not report an error at run time. Use the POST method to submit it. When you find the parameter under form data in the browser ajax request, it is found that the item without meetID this attribute (the second piece of data in figure 1) does not have spliced id parameters.
paramsidundefined
the solution can be written as follows:
params["arrange["+index1+"].id"]=val3.meetID || "";
but I don"t understand why the printed one is different from the one passed by the browser. Is it because one is an object and the other is a string? Or did the browser automatically drop the content of undefined on Filter?
