![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MVC
文章平均质量分 87
南京吴彦祖
这个作者很懒,什么都没留下…
展开
-
后台调用WebApi+返回类对象
上图左边两个demo都可以直接获取ORDER类。(GET方法) //Get调用WebApi方法1,可以直接调上图左侧两个demo,返回值string或ORDER类 HttpClient myHttpClient = new HttpClient(); //提交当前地址的webapi string url = "http://localhost:8082/"; myHttpClient.BaseAddress = n.原创 2020-05-14 09:52:37 · 834 阅读 · 0 评论 -
C# MVC调用webapi
前台按钮 <button class="btn btn-primary" style="margin-left:20px" onclick="Get1();" );">测试GET接口1</button> <button class="btn btn-primary" style="margin-left:20px" onclick="Get2();" );"...原创 2019-12-24 15:53:46 · 681 阅读 · 0 评论