注意 - 我正在查看网站并获得此错误的方式是通过http://code.google.com/p/ibbdemo2/ - adobe air ipad模拟器。
<script type='text/javascript' src='https://www.google.com/jsapi'></script>
<script type='text/javascript'>
var percent = <%= donevalue %>;
google.load('visualization', '1', { packages: ['gauge'] });
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Label', 'Value'],
['%complete', percent]
]);
var options = {
width: 120, height: 100
};
var chart = new google.visualization.Gauge(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
感谢您的帮助。