js数组求解,为什么不是数组,是个字符串呢?
function myeachtabledata(id)
{
var tabarr=new Array();
$('#'+id).find("tr").each(function(trindex)
{
tabarr[trindex]=new Array();
$(this).find("td").each(function(tdindex)
{
tabarr[trindex][tdindex]=$(this).text();
});
});
return window.location.href =("?a=export_csv &&str=" +tabarr);
}