tsfly2010 2010-10-18 15:07 采纳率: 0%
浏览 335
已采纳

ext怎样在后台取前台的值

    //起始日期
    var sDate_his_trade = new Ext.form.DateField({
            id:'sDate_his_trade',
            format:'Y-m-d',
            width:120,
            paramName:'_TradeDate[>=][Date]'
    });

    //截止日期
    var eDate_his_trade = new Ext.form.DateField({
            id:'eDate_his_trade',
            format:'Y-m-d',
            width:120,
            paramName:'_TradeDate[<=][Date]'
    })

    var tolbar2_his_trade = new Ext.Toolbar({
        height:25,
        items:[{
                xtype:'tbspacer'
            },
            {
                xtype:'tbspacer'
            },
            {
                xtype:'tbspacer'
            },
            {
                text:"起始日期:",
                xtype:'tbtext'

            },
            sDate_his_trade,
            {
                xtype:'tbspacer'
            },
            {
                text:"~",
                xtype:'tbtext'
            },
            {
                xtype:'tbspacer'
            },
            {
                text:"截止日期",
                xtype:'tbtext'

            },
            eDate_his_trade,
            {
                xtype:'tbfill'
            },
            {
                xtype:'tbbutton',
                text:'查询',
                handler:function(){....}
            }

            ]
    });

我怎样将文本框中的内容传递到后台,后台怎样获取?

  • 写回答

3条回答 默认 最新

  • lizhiyezi 2010-10-18 15:40
    关注

    吧相应value值相加成你规定的格式.
    key : '__TradeDate['+value+']'
    后台在对这种格式进行解析就行了。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?