ASP代码(ASP获取页面源码方法,有编码.超时时间参数,处理了乱码.超时的问题): Function GetHttpPage(HttpUrl) Then GetHttpPage="$False$" Exit Function End If Dim Http 'Set Http=server.createobject("MSXML2.XMLHTTP") Set Http=server.createobject("MSxml2.ServerxmlHTTP&q…
//json序列化和反序列化 using System.Runtime.Serialization.Json; public static string JsonSerializer<T>(T t) { DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(T)); MemoryStream ms = new MemoryStream(); ser.WriteObject(ms, t); string js…