[英]Converting an Ext.data.TreeStore to JSON
I need to stringify an Ext.data.TreeStore (cause I wanna save it to Local Storage), but calling Ext.encode() doesn't work -- I get a circular structure error. 我需要对Ext.data.TreeStore进行字符串化处理(因为我想将其保存到本地存储中),但是调用Ext.encode()不起作用-我收到了循环结构错误。
Has anyone done this before? 有人做过吗?
I can't think of anyway, maybe it's just not possible to save it like it is with normal store. 无论如何,我都想不起来,也许无法像普通商店一样保存它。 I think your best bet is to save it item by item. 我认为您最好的选择是逐项保存它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.