我的输出应该是这样的:(例如数据)
myArray = [ [otherArray0], [otherArray1], [otherArrayN] ]
我的尝试:
var myArray = [];
var num = 50;
for (i=0; i<num;i++)
{
var a = 0;
$('#divID .class select[value!=""]').each(function() //get values from a select
{
var otherArray+i = []; //each for cycle is a new "sub array"
otherArray+i[a] = $(this).val(); //store in array the values from select
a++
})
}
我想好了吗?