摘要: 引入log4net.dll文件 1,Log4NetHelper 1 using log4net; 2 using System; 3 using System.Collections.Concurrent; 4 //Specifies the config file used by log4net 阅读全文
posted @ 2020-04-28 10:54 孝文 阅读(145) 评论(0) 推荐(0)
摘要: 1,多重继承变化封装 2,桥接模式:解决多维度的变化 有一个手机抽象类如下: 1 /// <summary> 2 /// 抽象父类 3 /// </summary> 4 public abstract class BasePhone 5 { 6 /// <summary> 7 /// 操作系统 8 阅读全文
posted @ 2020-04-28 10:43 孝文 阅读(129) 评论(0) 推荐(0)
摘要: 1,CSS 1 /* 触发弹窗图片的样式 */ 2 #researchImg { 3 border-radius: 5px; 4 cursor: pointer; 5 transition: 0.3s; 6 } 7 8 #researchImg:hover { 9 opacity: 0.7; 10 阅读全文
posted @ 2020-04-28 10:41 孝文 阅读(374) 评论(0) 推荐(0)
摘要: 1 public class AwaitAsyncShow 2 { 3 public static void Show() 4 { 5 Test(); 6 } 7 private async static Task Test() 8 { 9 Console.WriteLine($"当前主线程id={ 阅读全文
posted @ 2020-04-28 10:37 孝文 阅读(131) 评论(0) 推荐(0)
摘要: Random random=new Random();//伪随机 1 public class RandomHelper 2 { 3 /// <summary> 4 /// 获取随机数 5 /// </summary> 6 /// <param name="min">包含,能出现的最小值</para 阅读全文
posted @ 2020-04-28 10:36 孝文 阅读(190) 评论(0) 推荐(0)
摘要: 1 public partial class frmSSQ : Form 2 { 3 public frmSSQ() 4 { 5 InitializeComponent(); 6 this.btnStart.Enabled = true; 7 this.btnStop.Enabled = false 阅读全文
posted @ 2020-04-28 10:34 孝文 阅读(246) 评论(0) 推荐(0)
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 100px; height: 100px;background-color:red;posi 阅读全文
posted @ 2020-04-28 10:23 孝文 阅读(142) 评论(0) 推荐(0)
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 150px; height: 200px;background-color:green;po 阅读全文
posted @ 2020-04-28 10:22 孝文 阅读(134) 评论(0) 推荐(0)
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 200px; height: 200px;background-color:red; 8 f 阅读全文
posted @ 2020-04-28 10:19 孝文 阅读(95) 评论(0) 推荐(0)
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 100px; height: 100px;background-color:red;posi 阅读全文
posted @ 2020-04-28 10:17 孝文 阅读(104) 评论(0) 推荐(0)