随笔分类 - WebAPI
摘要:public string HttpPost() { string strURL = ""; DataTable dt = new Arichive().GetKEY(); string JsonString = string.Empty; JsonString = "{\"appKey\":\""
阅读全文
摘要://方式一: 获取JSON:格式为: [{"ID":"aaaa","NO":"111","NAME":"111","DESC":"1111"},{"ID":"bbbb","NO":"222","NAME":"222","DESC":"2222"}] //解析json public
阅读全文
摘要://默认返回 json GlobalConfiguration.Configuration.Formatters.XmlFormatter.SupportedMediaTypes.Clear(); // GlobalConfiguration.Configuration.Formatters.Jso
阅读全文