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

问题描述 投票:2回答:1

如何在融合表中使用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 });
    });
}
javascript html visualization google-fusion-tables
1个回答
0
投票
numRows = response.getDataTable().getNumberOfRows();
© www.soinside.com 2019 - 2024. All rights reserved.