代码如下,点击按钮,为什么没有效果?哪里弄错了?
Ext.onReady(function() {
var linhaiyun= new Ext.form.FormPanel({
        name: 'linhaiyun',
id:'linhaiyun',
height:40,
        width:1200,
        renderTo: document.body,
        layout : {
type : 'column'
},
bodyPadding : 10,
items : [ {
xtype : 'combobox',
fieldLabel : '',
anchor : '100%'
}, {
xtype : 'combobox',
emptyText: 'yy',
fieldLabel : ''
}, {
xtype : 'textfield',
id : 'you',
name : 'you',
fieldLabel : ''
}, {
xtype : 'combobox',
fieldLabel : ''
} ]
    });
var formPanel = new Ext.Panel({
renderTo : Ext.getBody(),
width : 1300,

height : 500,
items : [ {
xtype : 'form',
height : 250,
width : 806,

layout : {
type : 'auto'
},
bodyPadding : 10,
items : [ 
         //
         linhaiyun, 
         {
xtype : 'form',
height : 100,
width : 549,
layout : {
type : 'column'
},
bodyPadding : 10,
items : [ {
xtype : 'combobox',
fieldLabel : '',
anchor : '100%'
}, {
xtype : 'combobox',
fieldLabel : ''
}, {
xtype : 'textfield',
fieldLabel : ''
}, {
xtype : 'button',
renderTo : Ext.getBody(),
handler : function() {
alert("您已成功添加一行查询条件");

var var_textfield = new Ext.form.TextField({
text : 'ddd',
width : 50

}); // 需要添加的组件内容及属性
var panel = Ext.get('linhaiyun');
alert(panel != null);
 panel.add(var_textfield);
 panel.doLayout(); 
 

},
text : '添加查询条件'
}, {
xtype : 'button',
width : 151,
text : 'MyButton'
} ]
} ]


}, {
xtype : 'gridpanel',
height : 181,
viewConfig : { },
columns : [ {
xtype : 'gridcolumn',
width : 65,
text : '客户单号'
}, {
xtype : 'gridcolumn',
width : 75,
text : '业务员'
}, {
xtype : 'gridcolumn',
width : 77,
text : '业务跟单'
}, {
xtype : 'gridcolumn',
width : 77,
text : '表单编号'
}, {
xtype : 'gridcolumn',
width : 74,
text : '客户名称'
}, {
xtype : 'gridcolumn',
width : 69,
text : '产品编号'
}, {
xtype : 'gridcolumn',
width : 69,
text : '产品名称'
}, {
xtype : 'gridcolumn',
width : 76,
text : '客户料号'
}, {
xtype : 'gridcolumn',
width : 72,
text : '订购数量'
}, {
xtype : 'gridcolumn',
text : '产品单价'
}, {
xtype : 'gridcolumn',
text : '产品金额'
}, {
xtype : 'gridcolumn',
text : '交货日期'
}, {
xtype : 'gridcolumn',
text : '订单日期'
} ]
} ]
});});