web开发方法 做很多项目。 (Do lots of projects.) I'm not kidding, it's really that simple. If you've internalized this, stop reading and go work. 我不是在开玩笑,这真的很简单。 如果您已将其内部化,请停止阅读并开始工作。 项目无处不在
1.新建项目选择ASP.net MVC 4 Web应用程序 2.选择Web API c 3.在新建立的项目里面有已经生成的webapi模版 其中App_Start文件夹下WebApiConfig.cs和RouteConfig.cs文件主要配置api的路由信息。 Controllers文件夹下的文件为api的实现文件。其中ValuesController.cs是示例api文