我正面临这个错误“未被捕获的referenceerror:没有定义Highcharts” 你能帮忙吗
我添加了以下代码
<script src="../../webRoot/webResource/js/jquery-1.11.1.min.js"></script>
<script src="../../webRoot/webResource/js/highcharts.js"></script>
另请查找我的HighCharts相关代码:
$(function () { $(document).ready(function () { var options = new Object(); options.chart = new Object(); options.chart.renderTo = 'container'; options.chart.type = 'line'; options.series = new Array(); for (var i = 0; i < 7; i++) { options.series[i] = new Object(); options.series[i].name = 'china'; options.series[i].data = new Array(i, i + 1, i + 2); } var chart = new Highcharts.Chart(options); }); });
我收到的错误是:
var chart = new HighCharts.Chart(options)