如果我有 Model 并且我想将其序列化为 JSON 以在代码中使用,我怎样才能做得更好?我必须使用Reader/Writer还是还有其他方法?
最佳答案
Ext.encode
专门用于此目的。 (返回 json
的 string
)
var json = Ext.encode(this.getStore().data.items[0].data);
更多信息请访问 sencha docs
关于javascript - 在 ExtJS 中序列化模型的最佳方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21560914/