我试图在我们的网站上使用 Highcharts
实现饼图,但我不断收到此错误:`
TypeError: $(...).highcharts is not a function $('#container').highcharts({
我在代码之前调用所有必需的文件,并将代码放入 ready
函数中,但这并没有产生任何影响。
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="../site/js/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#container').highcharts({
最佳答案
我使用的是过时版本的 highcharts.js
关于javascript - Highcharts 功能未被识别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32212692/