TypeError: Handsontable is not a constructor

Tags: #<Tag:0x00007efc64e11e70>

when I use these code
/* var hot=$("#example").handsontable({
data: data,
minSpareRows:5,
minCols:26,
minRows:10,
colWidths:250,
//autoColumnSize:true,
rowHeaders: true,
colHeaders: true
});*/
it can working
but where I use the other code

var hot = new Handsontable(document.getElementById(‘example’),{data:data});

,it can’t work,and tell me “TypeError: Handsontable is not a constructor”,why?

Hi @wangchun

I have made an exact example at http://jsfiddle.net/6dopj35y/ and it’s loading the table.