Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/390.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 导出Highchart后重新加载页面_Javascript - Fatal编程技术网

Javascript 导出Highchart后重新加载页面

Javascript 导出Highchart后重新加载页面,javascript,Javascript,在我的项目中,我使用Highchart,出于某种原因,我需要在导出图表后重新加载页面,下面的代码我尝试过,但这不起作用 menuItems: [{ textKey: "printChart", onclick: function() { this.print() location.reload(true) }

在我的项目中,我使用Highchart,出于某种原因,我需要在导出图表后重新加载页面,下面的代码我尝试过,但这不起作用

menuItems: [{
                textKey: "printChart",
                onclick: function() {
                    this.print()
                    location.reload(true)
                }
            }

感谢您的帮助

this.print()
后面的逗号更改为分号是否有帮助?这也尝试过了,但不起作用