12 2020 档案

C#版escape unescape
摘要:/// <summary> /// Escape方法 /// </summary> /// <param name="s"></param> /// <returns></returns> public static string Escape(string s) { StringBuilder s 阅读全文

posted @ 2020-12-11 16:07 炼金师 阅读(151) 评论(0) 推荐(0)

C# 编码解码
摘要:string test = "小飞侠"; test = HttpUtility.UrlEncode(test, Encoding.UTF8);//编码 test = HttpUtility.UrlDecode(test, Encoding.UTF8);//解码 阅读全文

posted @ 2020-12-11 15:28 炼金师 阅读(257) 评论(0) 推荐(0)

asp.net跨域问题
摘要:方案一: web.config中的“system.webServer”标签页中添加 <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Contro 阅读全文

posted @ 2020-12-02 16:54 炼金师 阅读(117) 评论(0) 推荐(0)

导航