我有几个这样的对象:
我想移动一步,让他们在旁边type
,然后删除。转换为 JSON
时是这样的:value
field
data
departments
[
{"field" : "DEPARTMAN_NO",
"data" : { "type":"numeric" , "comparison":"eq" , "value":11 }
},
{"field" : "DEPARTMAN_ADI",
"data" : { "type":"string" , "value":"bir" }
}
]
我试过了:
departments = grid.filters.getFilterData();
i = {};
for(var i in department) {
department = i.data;
delete.department.data;
};
但它不起作用。