Ext.onReady(function(){
Ext.QuickTips.init();
// turn on validation errors beside the field globally
Ext.form.Field.prototype.msgTarget = 'side'; var InformationForm=new Ext.form.FormPanel({
buttonAlign:'center',
labelAlign:'left',
labelWidth:40,
title: '1111',
frame:true,
bodyStyle:'padding:0px 0px 0 0;',
width: 500,
items:[{
// xtype:'textfield',
// fieldLabel:'姓名',
// name:'n_username',
// id:'i_username',
// width:100
// },
// {
xtype:'TextArea',
id:'txt',
emptyText:'吗',
name:'txtname',
fieldLabel:'吗',
width:200
}]
});
InformationForm.render(document.body);
});
这样也不行,报没有创建对象!
Ext.QuickTips.init();
// turn on validation errors beside the field globally
Ext.form.Field.prototype.msgTarget = 'side'; var InformationForm=new Ext.form.FormPanel({
buttonAlign:'center',
labelAlign:'left',
labelWidth:40,
title: '1111',
frame:true,
bodyStyle:'padding:0px 0px 0 0;',
width: 500,
items:[{
// xtype:'textfield',
// fieldLabel:'姓名',
// name:'n_username',
// id:'i_username',
// width:100
// },
// {
xtype:'TextArea',
id:'txt',
emptyText:'吗',
name:'txtname',
fieldLabel:'吗',
width:200
}]
});
InformationForm.render(document.body);
});
这样也不行,报没有创建对象!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货