有时候会使用一个简单的FORMPANEL,上面label样式来显示数据。 如下: // 事件上报 Ext.BLANK_IMAGE_URL='../../../ext-3.2.0/resources/images/default/tree/s.gif'; Ext.onReady(function(){ Ext.QuickTips.init(); function setContent(s,records) { try { var sbr=Ext.getCmp('SBR'); sbr.setValue(records[0].get('SBR')); var txt_sjjy=Ext.getCmp('SJJY'); txt_sjjy.setText('<br>'+records[0].get('SJJY'),false); }catch(err) { alert(err.description) } } var store=new Ext.data.JsonStore({ url:'AcdReprot.aspx?action=buildContent‘, root:'data', autoLoad:true, fields:[ 'SBR', 'SJJY'] }); store.addListener('load',setContent) var form =new Ext.FormPanel({ labelAlign:'left', labelWidth:80, buttonAlign:'center', frame:true, border:false, renderTo:'Div', columnLines: true, autoWidth:true, height:550, store:store, items:[ { xtype:'textfield', fieldLabel:'上报人', width:200, height:20, style:'margin-top:5px;', name:'SBR', id:'SBR' }, { xtype:'label', fieldLabel:'执行内容', name:'SBDW', id:'SBDW', width:400, height:20, html:'测试。' } ,{ xtype:'label', fieldLabel:'情况', anchor:'98%', height:60, style:'font-family: 宋体; font-size: 13px;letter-spacing:1;', id:'SJJY', name:'SJJY' } ] }); }); 注意后台JSON转借代码中,要进行如下格式的转化-----Replace("/r/n", "<br/>");