Ext.JS Prevent Proxy from sending extra fields
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Here is my model: Ext . define ( 'A.model.Group' , { extend : 'Ext.data.Model' , fields :[ 'id' , 'name' ], proxy : { type : 'rest' , url : '/group' , reader : { type : 'json' , root : 'data' }, writer : { type : 'json' , writeAllFields : false } } }); The model is being used in a Tree via a TreeStore The problem is that when a PUT , POST or DELETE method is done, instead of sending only fields from the model in the JSON payload, fields from Ext.data.NodeInterface are also sent. Here is an example payload: { "id" : "" , "name" :