我有一个工作正常的加载图像,但是当我向表单添加下载按钮并添加代码时
Response.ClearContent();
Response.ContentType = "application/vnd.ms-excel";
Response.AppendHeader("Content-Disposition", "attachment; filename=ssss.xls");
Response.WriteFile(uploadingFilePath & fileName)
HttpContext.Current.ApplicationInstance.CompleteRequest();
我明白当跑步时
Response.AppendHeader("Content-Disposition", "attachment; filename=ssss.xls");
线,然后window.onload
功能不起作用,任何人都可以帮助我提前谢谢