![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mvc web api
阿星_
这个作者很懒,什么都没留下…
展开
-
解决asp.net mvc的跨域请求问题
解决asp.net mvc的跨域请求问题 web.config中配置如下内容: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 <add转载 2017-03-10 11:45:07 · 2377 阅读 · 1 评论 -
web文件上传,webapi后台接收
前端: 后台: public string Post() { string key = HttpContext.Current.Request["k原创 2017-01-12 17:37:20 · 6378 阅读 · 0 评论 -
asp.net mvc web api post请求带一个参数
post请求带一个参数 <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></titl...原创 2018-12-19 11:42:05 · 1713 阅读 · 0 评论 -
asp.net WebApi 返回html页面
asp.net WebApi 返回html页面 public HttpResponseMessage Get(string id) { if (id.Contains("OID=")) { id = id.Replace("OID=", ""); } ...原创 2018-08-24 15:27:52 · 7672 阅读 · 1 评论 -
上传文件
public void upload() { KJHttp kjh = new KJHttp(); HttpParams params = new HttpParams(); //可多次put,支持多文件上传 // params.put("file", FileUtils.getSaveFile("KJLibrary", "lo...原创 2017-12-27 15:50:15 · 234 阅读 · 0 评论