日期:2014-05-17  浏览次数:21012 次

后台如何传递两个值给前台Ext
我写了一个上传图片,上传成功后前台要获取到图片的路径,不知道怎么把值传给前台。。。请大家帮帮忙看看。。
前台部分代码: listeners: {
                            'click': function addFile(o) {
                                var form = Ext.getCmp("usermanage-addprisoner-form").getForm();
                                if (form.isValid) {
                                    //Ext.Ajax.request
                                    form.submit({
                                        url: 'data/test.ashx',
                                        // 'data/upload.ashx'
                                        method: 'POST',
                                        waitMsg: '正在上传',
                                        success: function () {
                                            Ext.Msg.alert('提示', '上传成功');
                                            //                                            var obj = response.responseText;
                                            //                           &