mvc中返回的javascript当做文件下载
解决方案
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.ContentType = "text/html";
或者使用
Page.ClientScript.RegisterClientScriptBlock (上面两句话就不用写了)
2022-11-05 15:19:19
mvc中返回的javascript当做文件下载
解决方案
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.ContentType = "text/html";
或者使用
Page.ClientScript.RegisterClientScriptBlock (上面两句话就不用写了)