我有一个运行着的httpd服务器,其中包含许多文件的链接。假设用户从文件列表中选择了三个要下载的文件,它们位于:
mysite.com/file1
mysite.com/file2
mysite.com/file3
当他们点击下载按钮时,我希望他们可以从上面的链接中下载这三个文件。
我的下载按钮大致长这样:
var downloadButton = new Ext.Button({
text: "Download",
handler: function(){
//download the three files here
}
});