TypeError:导出

时间:2015-12-09 15:52:08

标签: javascript highcharts

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

enter image description here

Highcharts是否有任何更新才能停止工作?以下是我的导出选项(仅需要打印)

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

1 个答案:

答案 0 :(得分:1)

我的进口不正确。

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

<强>旧

<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">