我有动态数组(对象)
var variables = {};
variable["var1"] = someValue;
variable["var2"] = someValue;
...
variable["varN"] = someValue;
以及如何将其纳入此fce:
$("#uploadForm").ajaxSubmit({
data: { variables }
});
答案 0 :(得分:2)
尝试
$("#uploadForm").ajaxSubmit({
data: variables
});