06 2019 档案
摘要:/// /// 获得pc号 /// public static string GetPcsnString() { var pcsn = ""; try { var search = new Manage...
阅读全文
摘要:1、增加字段(修改表)alter table 表名 ADD 字段 类型 NOT NULL Default 0
阅读全文
摘要:string l_strResult = 你的字符串.Replace("\n", "").Replace(" ","").Replace("\t","").Replace("\r","");
阅读全文
摘要:string数组 string[] s1 = new string[3] { "John", "Paul", "Mary" }; string[] s1 = new string[3] { "John", "Paul", "Mary" }; if (s1.Contains("John")) if (
阅读全文
摘要:i.ToString().PadLeft(5,'0');
阅读全文
摘要:最正确的一种:
阅读全文
摘要:https://blog.csdn.net/weixin_34190136/article/details/85989221
阅读全文
摘要:解决方案 使用Referer Meta标签控制referer,在H5 的 header加入meta: <meta name="referrer" content="never">
阅读全文
摘要:在TabControl中的TabPage选项卡中添加Form窗体
阅读全文
摘要:第一种: Regex reg = new Regex(“”); string htmlCode = "(?<= src=\").*(?=\" alt)"; Match match = reg.Match(htmlCode); string url = match.value;
阅读全文
摘要:第一种: 第二种: 它们都一次将文本内容全部读完,并返回一个包含全部文本内容的字符串string str = File.ReadAllText(@"c:\temp\ascii.txt");// 也可以指定编码方式 string str2 = File.ReadAllText(@"c:\temp\as
阅读全文
摘要:/// /// 下载网络资源 /// /// 地址 /// 保存下载文件的路径,例:"e:\\1.png" private void DownLoadFiled(string url, string path) { WebClient webClient = new WebClient(); webClient.DownloadFile(url, path); }
阅读全文
摘要:为保持平台的通用性,最好用 Environment.NewLine
阅读全文