使用AjaxForm上传文件时候,在IE下直接提示下载保存:html
个人示例代码:json
return this.Json( new { prop1 = 5, prop2 = 10 });
这种问题只出如今IE下,是因为AjaxFrom只接受以Html格式返回的Json,因此须要在返回的json对象里设置content:this
return this.Json( new { prop1 = 5, prop2 = 10 }, "text/html");