06 2019 档案

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

点击右上角即可分享
微信分享提示