如何在融合表中使用queryText获取行数结果?

时间:2012-06-18 16:36:51

标签: javascript html visualization google-fusion-tables

如何在融合表中使用queryText获取行数?我将在下面发布我的代码......

function drawTable() 
{
    var queryText = encodeURIComponent(consulta);
    var gvizQuery = new google.visualization.Query('http://www.google.com/fusiontables/gvizdata?tq=' + queryText);
    gvizQuery.send(function (response) 
    {
        var table = new google.visualization.Table(document.getElementById('visualization'));
        table.draw(response.getDataTable(), { showRowNumber: true });
    });
}

1 个答案:

答案 0 :(得分:0)

numRows = response.getDataTable().getNumberOfRows();