Javascript Magento:TypeError:N不是函数
我试图将highcharts添加到magento,但出现以下错误Javascript Magento:TypeError:N不是函数,javascript,magento,highcharts,Javascript,Magento,Highcharts,我试图将highcharts添加到magento,但出现以下错误 TypeError: N is not a function (highcharts.js line 192) My local.xml <adminhtml_mymodule_show> <reference name="head"> <action method="addJs"><file>mymodule/js/highcharts.js</fi
TypeError: N is not a function (highcharts.js line 192)
My local.xml
<adminhtml_mymodule_show>
<reference name="head">
<action method="addJs"><file>mymodule/js/highcharts.js</file></action>
<action method="addJs"><file>mymodule/js/my_charts.js</file></action>
</reference>
</adminhtml_mymodule_show>
我的视图文件
<div class="entry-edit">
<div class="entry-edit-head">
<h4 class="icon-head head-customer-view">
<?php echo $this->__('Test header') ?></h4>
</div>
<h1><?php echo $this->test; ?></h1>
<div id="container" style="width:100%; height:400px;"></div>
</div>
我签入了Firebug,这些文件被添加到head标签中。我还尝试添加prototype-adapter.js或使用独立框架,但没有成功——每次我都会从标题中看到错误
我使用magento 1.9和highcharts 4.0.4
感谢您的帮助Javascript无法识别highchart.js中的N。可能存在需要与highchart.js一起加载的外部js
确保jQuery在highchart.js之前加载。与jQuery和prototype.js冲突?您是否能够将其重新创建为与magento隔离的实时演示?
<div class="entry-edit">
<div class="entry-edit-head">
<h4 class="icon-head head-customer-view">
<?php echo $this->__('Test header') ?></h4>
</div>
<h1><?php echo $this->test; ?></h1>
<div id="container" style="width:100%; height:400px;"></div>
</div>