摘要:
在ASP.NET MVC 中获取当前URL、controller、action URL的获取很简单,ASP.NET通用:【1】获取 完整url (协议名+域名+虚拟目录名+文件名+参数) string url=Request.Url.ToString(); 【2】获取 虚拟目录名+页面名+参数: s 阅读全文
摘要:
一、服务端 1.新建webapi项目 2.配置WebApiConfig public const string DEFAULT_ROUTE_NAME = "DB";// DB指数据库上下文 public static void Register(HttpConfiguration config) { 阅读全文