我收到此错误:
uncaught TypeError: Object [object Object] has no method 'on'
在 jquery.handsontable.js:2258
我有一些看起来像这样的设置:
<script src="/javascripts/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="/javascripts/jquery-ui-1.8.12.custom.min.js" type="text/javascript"></script>
<script src="/javascripts/jquery.handsontable.js" type="text/javascript"></script>
<script src="/javascripts/jquery.simplemodal.1.4.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
var $j = jQuery.noConflict();
</script>
<div id="dataTable" class="dataTable"></div>
<script>
$j("#dataTable").handsontable();
var data = [
["", "Kia", "Nissan", "Toyota", "Honda"],
["2008", 10, 11, 12, 13],
["2009", 20, 11, 14, 13],
["2010", 30, 15, 12, 13]
];
$j("#dataTable").handsontable("loadData", data);
</script>