如何使用extjs4生成JSON文件?
我有一个函数返回一个Ext.encode
的字符串列表,如下所示:
{"1145":
{
"IN1":15,
"IN2":6,
"OUT1 Fix":11,
"OUT1 Alt":3
}
}
如何将其存储到JSON文件中? 我正在使用带有MVC模型的extjs4,我的商店现在看起来像这样:
Ext.define('M.store.tempGraphData', {
extend : 'Ext.data.Store',
model : 'M.model.tempGraphDataModel',
autoload : true,
proxy : {
//I guess this is where I should put something to write to my json file?
}
},
});