【发布时间】:2019-07-18 21:50:54
【问题描述】:
我有外部 API, 代理是休息, 读者定义, 类型:'json', rootProperty: '数据;
如何获取属性“FullName” 我已尝试使用 record.get('FullName')。
创建的名为 getDetails 的函数,作为参数字符串传递,返回 返回 record.get('FullName),始终未定义。
Details: function(v, record) {
return record.get('FullName')
}
这里是 onDelete 函数:
OnDelete: function (record,data) {
Ext.Msg.confirm('Delete Changes', 'Do you want to delete' + " " + record.Details, function (choice) {
if (choice === 'yes') {
var store = Ext.getStore('store.Personnel');
store.remove(record);
store.sync();
}
})
},
【问题讨论】:
标签: extjs