0
我想從handsontable價值沒有得到數據,但我得到這個錯誤:未捕獲 的ReferenceError:熱沒有被定義從動手錶
我不知道,因爲我有爲什麼我收到此錯誤定義熱點。
這裏是我的js代碼
<body>
<div id='table_set' style='margin-left:150px;'>
<button id='save'>Save</button>
<div class='handsontable' id='create_table'></div>
</div>
</body>
<script>
$(document).ready(function() {
var data = [[]];
var container = document.getElementById('create_table');
var hot = new Handsontable(container,
{
data: data,
minRows: 30,
minCols: 13,
maxRows:100,
copyPaste:true,
colHeaders: true,
rowHeaders: true,
rowHeaders: true,
contextMenu: true,
dropdown: true,
colHeaders:["Testcase Name","Cell Name","Customer","Flops","Title","Status","Mfix CCR(open/close)","Scenerio-Brief Description","Expected Results","CCR Status","CCR No.","Remarks","Testcase Path"]
});
});
$(document).ready(function() {
$('#save').click(function() {
var pr= hot.getData();
alert(pr);
});
});
我想我已經寫在表中的值,在警告框,只要我打的保存button.Please幫助下,我在哪裏丟失。
在此先感謝。