gpt4 book ai didi

javascript - Highcharts 功能未被识别

转载 作者:行者123 更新时间:2023-12-03 09:04:50 25 4
gpt4 key购买 nike

我试图在我们的网站上使用 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com