05 2017 档案

Redis 模糊匹配 SearchKeys
摘要:语法:KEYS pattern 说明:返回与指定模式相匹配的所用的keys。 该命令所支持的匹配模式如下: (1)?:用于匹配单个字符。例如,h?llo可以匹配hello、hallo和hxllo等; (2)*:用于匹配零个或者多个字符。例如,h*llo可以匹配hllo和heeeello等; (3)[ 阅读全文

posted @ 2017-05-27 10:28 跨界农民工 阅读(914) 评论(0) 推荐(0)

C# AutoMapper
摘要:http://www.cnblogs.com/xlhblogs/p/3356748.html 阅读全文

posted @ 2017-05-23 16:46 跨界农民工 阅读(100) 评论(0) 推荐(0)

WebClient 请求返回的是Gbk编码解决方案
摘要:WebClient client = new WebClient(); client.Headers.Clear(); client.Headers.Add("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"); cli 阅读全文

posted @ 2017-05-04 09:38 跨界农民工 阅读(456) 评论(0) 推荐(0)

asp.net获取客户真实ip非代理ip:
摘要:public string GetUserIP() { string _userIP; if(Request.ServerVariables["HTTP_VIA"] == null) { userIP= Request.UserHostAddress; } else { userIP= Reques 阅读全文

posted @ 2017-05-02 15:37 跨界农民工 阅读(111) 评论(0) 推荐(0)

导航