[code="java"]
// java对象
public class PropertyIdc
{
/**
* 获取读卡器类型
*/
private String variant;
private StatusIdc statusIdc;
}
public class StatusIdc
{
private String status;
}
extjs
items : [ {
fieldLabel : '读卡器类型',
name : 'variant'
}, {
fieldLabel : '是否具有退卡能力',
name : 'statusIdc.status'
}
赋值我是采用:
tab.getForm().load({
url : url,
method : 'GET',
failture : function(form, action) {
Ext.Msg.alert("Tip", "Data Load Fail!");
}
});
问题是: variant这个属性可以赋值上去,但statusIdc.status赋值不上.
返回的json格式是:{"data":{"variant":"CHIP_CONNETED","statusIdc":{"status":"Healthy"}},"success":true}
[/code]