Ext的一个问题 定义了一个panel之后,为panel添加一项,但是添加了之后显示不出来。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 自己参照一下看看,有问题再发上来:Ext.onReady(function(){ var SendCmd = new Ext.FormPanel({ aotoHeight:true, buttonAlign:'center', border:false, bodyStyle:'padding: 10px 10px 10px 20px;', labelWidth:2, defaults:{ anchor:'95%', allowBlank:false, msgTarget:'side' }, items:[{ xtype:'textarea', id:'Result', name:'Result', height:200, readOnly:true, allowBlank:true }, { xtype:'textfield', emptyText : '请输入...', name:"Task", id:"Task", listeners:{'specialkey':function(_field,_e){ if (_e.getKey() == _e.ENTER){ var str = Ext.getCmp('Result').getValue()+'\r\n'+Ext.getCmp('Task').getValue(); Ext.getCmp('Result').setValue(str); document.all.Result.scrollTop=document.all.Result.scrollHeight; } }} }] }); var win=new Ext.Window({ layout:'fit', title:"test", width:620, height:350, constrain: true, resizable:false, collapsible:true, closable:true, items:SendCmd }); win.show();}); 你提了两个相同的问题。帖出代码来看看。动态添加的话有可能是doLayout的问题 LZ说的是 var panel = {....} 然后 panel.add(一个组件) 没出来 是这样吧? ajax中get有的网站可以访问,有的不行,是什么原因 找师傅! 怎样获取checkbox数组中已经checked的元素个数? 关于打开子页面验证后返回父页面刷新问题 动态获得对象值 在JavaScript中怎样调用C#代码 谁能给我一个javascript提取注册表信息的例子 这么简单的问题怎么都搞不定?关于checkbox的问题。 简单:右键菜单问题(急!在线等待!) 怎么调用flash文件 关于getElementById和getElementByName的问题 网页图片自动播放代码
var SendCmd = new Ext.FormPanel({
aotoHeight:true,
buttonAlign:'center',
border:false,
bodyStyle:'padding: 10px 10px 10px 20px;',
labelWidth:2,
defaults:{
anchor:'95%',
allowBlank:false,
msgTarget:'side'
},
items:[{
xtype:'textarea',
id:'Result',
name:'Result',
height:200,
readOnly:true,
allowBlank:true
}, {
xtype:'textfield',
emptyText : '请输入...',
name:"Task",
id:"Task",
listeners:{'specialkey':function(_field,_e){
if (_e.getKey() == _e.ENTER){
var str = Ext.getCmp('Result').getValue()+'\r\n'+Ext.getCmp('Task').getValue();
Ext.getCmp('Result').setValue(str);
document.all.Result.scrollTop=document.all.Result.scrollHeight;
}
}}
}]
});
var win=new Ext.Window({
layout:'fit',
title:"test",
width:620,
height:350,
constrain: true,
resizable:false,
collapsible:true,
closable:true,
items:SendCmd
});
win.show();
});
帖出代码来看看。动态添加的话有可能是doLayout的问题