extjs怎么 监听change事件 把file框里面选择的路径传到后台 用的2.0.2的ext

2025-05-12 19:15:40
推荐回答(1个)
回答(1):

var FileForm = Ext.create('Ext.form.Panel', {
    border : false,
    layout : 'hbox',
    margin : '0 10 5 10',
    hidden : true,
    items : [{
    xtype : 'filefield',
    id : 'Filefield',
    buttonText : '选择文件',
    width : 360
    }, {
    xtype : 'button',
    text : '上传',
    width : 80,
    margin : '0 0 0 10',
    handler : uploadFiles // 方法
}]