これは私がアクセスしたい"tr_name"
のJSONファイルです。これはvar InspectorDefs
の中にありますが、私は方法を見つけることができません。助けてください?この特定のJSONキーにアクセスするには
JSONファイル:
var InspectorDefs = {
'link': {
inputs: {
attrs: {
'.attributes': {
'tr_name': { type: 'text', group: 'attributes', label: 'Name', index: 1 },
'tr_description': { type: 'text', group: 'attributes', label: 'Description', index: 2 },
'tr_rules': { type: 'select', options: [], group: 'attributes', label: 'Rule', index: 3 },
'tr_value': { type: 'select', options: ['true', 'false'], group: 'attributes', label: 'Value', index: 4 },
'tr_rule_source': { type: 'select', options: ['BPM', 'Drools', 'iLog'], group: 'attributes', label: 'Rule source', index: 5 }
},
},
},
},
};
私はここtr_name
パスを渡したいが、私は必死だ:
cell.on('change:tr_name', function(cell, change, opt) {})
あなたはtr_description 。私はまだcell.on( 'change:tr_description'、function(cell、change、opt){})の実装には問題がありますが、あなたが私の質問に答えても関係なく、最終的な答え。 –
これは100%動作します。ありがとうございました !!! –