摘要: 配置文件appconfig中 <add key="shujuKey" value="shujuValue" /> 在代码中使用 string shujuValue = ConfigurationManager.AppSettings["shujuKey"]; 阅读全文
posted @ 2020-08-07 14:51 青灯浊酒恋红尘 阅读(256) 评论(0) 推荐(0)
摘要: var url = $" url地址"; Dictionary<string, string> dicForm = new Dictionary<string, string>(); //添加的两个参数 dicForm.Add("LoginName", ""); dicForm.Add("Passw 阅读全文
posted @ 2020-08-07 10:54 青灯浊酒恋红尘 阅读(925) 评论(0) 推荐(0)
摘要: var url = $"http://api.。。。"; string postDataStr = " 参数 "; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url + (postDataStr == "" ? "" : " 阅读全文
posted @ 2020-08-07 10:51 青灯浊酒恋红尘 阅读(665) 评论(0) 推荐(0)