javascript - 类型错误 : B is not a function when exporting

标签 javascript highcharts

打印选项已停止在我的饼图上工作。我在控制台中收到此错误:

enter image description here

是否对 Highcharts 进行了任何更新以使其停止工作?这是我的导出选项(仅需要打印)

exporting: {
            buttons: {
                contextButton: {
                    menuItems: [{
                        text: 'Print Chart',
                        onclick: function () {
                            this.print();
                        }
                    }]
                }
            }
        },

最佳答案

我的导入不正确。

由于软件升级,我本地托管的文件与新更新的文件发生冲突。

<script type="text/javascript" src="/public/site/js/highcharts.js"></script>
<script type="text/javascript" src="/public/site/js/drilldown.js"></script>
<script src="http://code.highcharts.com/modules/data.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<script type="text/javascript">

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/data.js"></script>
<script src="https://code.highcharts.com/modules/drilldown.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<script type="text/javascript">

关于javascript - 类型错误 : B is not a function when exporting,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34183168/

相关文章:

javascript - 如何发送存储的模板并指定 reply_to、from.name 和 from.email?

php - 使用MySQL数据作为cakephp highchart插件的图表数据

javascript - 如何在Highcharts的饼图中动态设置标题

javascript - Highstocks - 如何检测何时按下缩放按钮

css - HighCharts 组织节点重叠

javascript - 如何解决ajax问题不显示在控制台中?

javascript - 如何使用 sinon stub aws s3 上传

javascript - react js功能组件中的条件渲染

javascript - 在 addClassRules 中添加组

javascript - Highcharts 中是否有子子下钻支持?