在 Ext JS 中,我有 JSON 阅读器的数据存储。我从服务器端的类生成模型,具有相同的层次结构 - 例如。在服务器上,我有CustomerDto扩展类的BaseDto类;在客户端,我也有CustomerDtowhich extendsBaseDto和BaseDtoextends Ext.data.Model。
假设我用模型SuperCustomerDto(扩展)定义数据存储并从服务器CustomerDto发送混合列表,它们总是反序列化为.SuperCustomerDtoCustomerDtoCustomerDto
有没有办法在 Ext JS 中配置数据存储,以便区分实际模型类型?所以在我的情况下,列表应该包含很少SuperCustomerDto和很少CustomerDto。