一起使用Highchart和Highmap时解决冲突(TypeError:ma不是函数) [英] Resolve Conflict When Using Highchart and Highmap together (TypeError: ma is not a function)
本文介绍了一起使用Highchart和Highmap时解决冲突(TypeError:ma不是函数)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含报表功能的图表和地图菜单的页面。
然后,我选择Highchart-Highmap库来达到上述目的。
图表函数运行良好,但是当我开发map函数时会出现一个错误。
$ b
I've a page that contain chart and map menu for report function. Then, I choose Highchart-Highmap library to reach the purpose above. The chart function runs well but when I develop map function there's a error appear
TypeError:ma不是函数 p>
TypeError: ma is not a function
- 我追踪了ma函数出现在highchart.js和highmaps.js中的问题,但是我不知道如何解决这个冲突。
- 我已经尝试在highmaps中放置
jQuery.noConflict();
,但冲突仍然出现 - I've traced the problem that the ma function is appear in highchart.js and highmaps.js but I don't know how to resolve this conflict.
- I've try put
jQuery.noConflict();
in highmaps but the conflict still appear
这是我在主页面上编码的代码
This how I code in main page
... some html code
<script type="text/javascript" src="././js/highcharts/highcharts.js"></script>
<script type="text/javascript" src="././js/highcharts/highcharts-more.js"></script>
<script type="text/javascript" src="././js/highcharts/highcharts-3d.js"></script>
<script type="text/javascript" src="././js/highcharts/modules/drilldown.js"></script>
<script type="text/javascript" src="././js/highcharts/modules/exporting.js"></script>
... some html code
<script type="text/javascript" src="././js/Highmaps/highmaps.js"></script>
<script type="text/javascript" src="././js/Highmaps/modules/data.js"></script>
<script type="text/javascript" src="././js/Highmaps/modules/exporting.js"></script>
如何解决这个问题?
How I can resolve this problem?
推荐答案
而不是高地图,你需要使用map.js模块。
Instead of highmaps, you need to use map.js module.
<script src="//code.highcharts.com/maps/modules/map.js"></script>
这篇关于一起使用Highchart和Highmap时解决冲突(TypeError:ma不是函数)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文