摘要: 目前使用的方法,google了好久+自己研究出来的,通过json生成表头效果图:View Code 1 Ext.onReady(function () { 2 //header也就是你应该从后台取回的表头数据,现在写死在了这里 3 //var grid; 4 Ext.Ajax.request({ 5 params: { 6 parafdno: '', 7 parafcy: '', 8 pararepnum: '' 9 }, //发送的参数 10 ... 阅读全文
posted @ 2012-12-05 20:02 玢棂 阅读(3413) 评论(0) 推荐(1) 编辑
摘要: 1 JObject output = new JObject(); 2 if (dt.Rows.Count > 0) 3 { 4 output = new JObject 5 { 6 //new JProperty("total",10), 7 new JProperty("success",true), 8 new JProperty("items",new JArray( 9 ... 阅读全文
posted @ 2012-12-05 19:30 玢棂 阅读(181) 评论(0) 推荐(0) 编辑