我有动态数组(对象)

var variables = {};

variable["var1"] = someValue;
variable["var2"] = someValue;
...
variable["varN"] = someValue;


以及如何将其放入此fce中:

$("#uploadForm").ajaxSubmit({
   data: { variables }
});

最佳答案

尝试

$("#uploadForm").ajaxSubmit({
   data: variables
});

关于javascript - Javascript将数组解析为输入参数,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/6900906/

10-12 06:46