Use parameter in function passed to google.setOnLoadCallback();

前端 未结 2 1645
孤城傲影
孤城傲影 2021-02-04 03:58

I\'m trying to use Google Visualization API to display data gathered from a MySQL server. I want to get the data using PHP and then pass it into the javascript function call to

2条回答
  •  情深已故
    2021-02-04 04:39

    The following are the steps to make it work:

    1. Place google.load and google.setOnLoadCallback in a separate script tag.
    2. Use a function expression.

    Here is the working code:

    
    
    
    
    
    
    
    
      

提交回复
热议问题