ITeye博客

extjs点击按钮下载

fourfire · 2009-03-20 12:23 · extjs · Markdown

原理是生成一个隐藏的form,提交给它 { id : 'buttonA', text : "导出", iconCls: 'export-icon', handler : function() { if (!Ext.fly('test')) { var frm = document.createElement('form'); frm.id = 'test'; frm.name = id; frm.style.display = 'none'; document.body.appendChild(frm); } Ext.Ajax.request({ url: 'download.do', form: Ext.fly('test'), method: 'POST',

										        isUpload: true
										       });
									
									}

								}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。