2020年3月17日
摘要: %windir%/System32/inetsrv/config/applicationHost.config 阅读全文
posted @ 2020-03-17 19:51 wxm3177 阅读(299) 评论(0) 推荐(0) 编辑
  2020年3月5日
摘要: // <summary> /// 只读形式读取文件 /// </summary> /// <param name="filePath"></param> /// <param name="encoding"></param> /// <returns></returns> public static 阅读全文
posted @ 2020-03-05 17:05 wxm3177 阅读(194) 评论(0) 推荐(0) 编辑
摘要: var params = Object.keys(qdata).map(function (key) { return encodeURIComponent(key) + "=" + encodeURIComponent(qdata[key]); }).join("&"); 阅读全文
posted @ 2020-03-05 14:17 wxm3177 阅读(1083) 评论(0) 推荐(0) 编辑
  2020年2月24日
摘要: 首先RouteConfig配置文件RegisterRoutes方法添加以下代码: routes.MapMvcAttributeRoutes(); Controller Aciont 加 [Route("news/{id:long:min(1)}.html"), HttpGet] 在web.confi 阅读全文
posted @ 2020-02-24 14:33 wxm3177 阅读(386) 评论(0) 推荐(1) 编辑
  2020年2月10日
摘要: /// <summary> /// 重写回传的处理 /// </summary> /// <param name="actionExecutedContext"></param> public override void OnActionExecuted(HttpActionExecutedCont 阅读全文
posted @ 2020-02-10 12:16 wxm3177 阅读(168) 评论(0) 推荐(0) 编辑
  2019年12月6日
摘要: create function Get_StrArrayStrOfIndex( @str varchar(5000), --要分割的字符串 @split varchar(10), --分隔符号 @index int --取第几个元素)returns varchar(5000)asbegin decl 阅读全文
posted @ 2019-12-06 17:54 wxm3177 阅读(531) 评论(0) 推荐(0) 编辑
摘要: CREATE FUNCTION dbo.f_splitstr( @str varchar(8000) )RETURNS @r TABLE(id int IDENTITY(1, 1), value varchar(5000)) AS BEGIN /* Function body */ DECLARE 阅读全文
posted @ 2019-12-06 17:51 wxm3177 阅读(857) 评论(0) 推荐(0) 编辑
  2019年11月15日
摘要: List<Car> cars = //whatever; string concat = String.Join(",", cars.Select(c => c.Name).ToArray()); string concat = cars.Select(c => c.Name).Aggregate( 阅读全文
posted @ 2019-11-15 17:42 wxm3177 阅读(1890) 评论(0) 推荐(0) 编辑
  2019年11月5日
摘要: 1、WebApiTestClient组件作用主要有以下几个: (1)、将WebApi的接口放到了浏览器里面,以可视化的方式展现出来,比如我们通过http://localhost:8080/Help这个地址就能在浏览器里面看到这个服务里面所有的API接口以及接口的详细说明,省去了我们手写接口文档的麻烦 阅读全文
posted @ 2019-11-05 17:16 wxm3177 阅读(101) 评论(0) 推荐(0) 编辑
  2019年9月17日
摘要: //获取当前运行程序的目录 string fileDir = Environment.CurrentDirectory; Console.WriteLine("当前程序目录:"+fileDir); //一个文件目录 string filePath = "C:\\JiYF\\BenXH\\BenXHC 阅读全文
posted @ 2019-09-17 15:04 wxm3177 阅读(230) 评论(0) 推荐(0) 编辑