开发者

passing a parameter to a callback function in google Visualizations

This is how google Visualization examples are.

google.load("visualization", "1", {packages:["table"], callback: drawVisualization});

or

google.load('visualization', '1', {'packages':['corechart']});
google.setOnLoadCallback(drawVisualization);

How can I pass a parameter to the callback function drawVisualization开发者_开发问答?


google.setOnLoadCallback(function() {
    drawVisualization(your_parameter);
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜