json数据怎么按照固定顺序输出
展开全部
json数据倒序语句如下所示:
var searchTplStore = new Ext.data.JsonStore({ autoDestroy: true, root:"倒序排列", forceFit: true, scrollOffset: 0 }, enableDragDrop : true,
另外json数据怎么按照固定的顺序输出呢?用到了List和JSONArray
这是想要的结果:["id":"1","text":"哈哈","children":[{"id":"1","text":"01"},{ "id":"2","text":"02" },{"id":"3","text":"03" }]]
但是输出是这样的["children":[{"id":"1","text":"01"},{ "id":"2","text":"02" },{ "id":"3","text":"03" }] ,"id":"1","text":"哈哈"]
var searchTplStore = new Ext.data.JsonStore({ autoDestroy: true, root:"倒序排列", forceFit: true, scrollOffset: 0 }, enableDragDrop : true,
另外json数据怎么按照固定的顺序输出呢?用到了List和JSONArray
这是想要的结果:["id":"1","text":"哈哈","children":[{"id":"1","text":"01"},{ "id":"2","text":"02" },{"id":"3","text":"03" }]]
但是输出是这样的["children":[{"id":"1","text":"01"},{ "id":"2","text":"02" },{ "id":"3","text":"03" }] ,"id":"1","text":"哈哈"]
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询