0
,我已要求editItem
功能是這樣的:如何獲得項目值時editItem功能在我jsGrid配置被稱爲jsGrid
editItem: function(item) {
var $row = this.rowByItem(item);
if ($row.length) {
console.log('$row: '+JSON.stringify($row));
this._editRow($row);
}
},
在console.log
,我得到的結果是:
{
"0": {
"jQuery223061031009408811742": {
"JSGridItem": {
"myColumn1": "AB",
"myColumn2": "BC",
"myColumn3": "CD",
}
},
"jQuery223061031009408811741": {
"events": {
"click": [
{
"type": "click",
"origType": "click",
"guid": 67,
"namespace": ""
}
],
"dblclick": [
{
"type": "dblclick",
"origType": "dblclick",
"guid": 68,
"namespace": ""
}
],
"mouseover": [
{
"type": "mouseover",
"origType": "mouseenter",
"data": null,
"guid": 69,
"namespace": ""
}
],
"mouseout": [
{
"type": "mouseout",
"origType": "mouseleave",
"data": null,
"guid": 70,
"namespace": ""
}
]
}
}
},
"selector": "",
"context": {},
"length": 1
}
我真正的領域是jQuery223061031009408811742 -> JSGridItem
我怎樣才能得到這些值與功能在jsGrid?或者可能在JSON中有內建函數來解決這個問題?
注意:字段jQuery223061031009408811742
每次頁面重新加載時都會改變,所以我無法硬編碼字段名稱來調用它。