谷歌可视化示例就是这样的。
google.load("visualization", "1", {packages:["table"], callback: drawVisualization});
或
google.load('visualization', '1', {'packages':['corechart']});
google.setOnLoadCallback(drawVisualization);
如何将参数传递给回调函数drawVisualization?
答案 0 :(得分:33)
google.setOnLoadCallback(function() {
drawVisualization(your_parameter);
});