0
如何使用使用Key的作爲Colomn頭Handsontable
我試圖用colomn頭以動手錶的數據發送到服務器以JSON格式鍵的鍵值對,我得到的輸出作爲發送JSON數據
[ 「羅希特」, 「庫納爾」, 「DDD」, 「DDD」]
,但我想作爲
{
"SourceIP" : "172.34.32.43,172.23.34.56",
"DestinationIP":"172.34.32.43,123.345.432.345",
"Port": "8080",
"Protocol":"TCP"
}
什麼需要輸出改變使代碼爲ou TPUT這樣
我的代碼:
jQuery(document).ready(function(){
var container = document.querySelector('#exampleGrid');
var hot = new Handsontable(container, {
startRows: 1,
startCols: 5,
minSpareCols: 0,
//always keep at least 1 spare row at the right
minSpareRows: 0,
//always keep at least 1 spare row at the bottom,
colHeaders: ['Source Ip','Destination Ip','Port','Protocol','Issue'],
rowHeaders: true,
//colHeaders: true,
contextMenu: true,
persistentState: true,
manualColumnResize: true,
manualRowResize: true[![enter image description here][1]][1]
});
Handsontable.Dom.addEvent(load, 'click', function() {
console.log(JSON.stringify({hot.getData()}));
});
如何合併Handsontable中的單元格 – Labeo
這是一個完整的其他問題,請繼續並將其作爲自己的問題。 – ZekeDroid
http://stackoverflow.com/questions/33539972/how-to-make-data-from-a-merged-cell-to-be-applied-for-all-the-cells-in-merged-re – Labeo