好好学习,天天向上!

摘要: https://www.sangfor.com.cn/product-and-solution/sangfor-security/27 阅读全文
posted @ 2022-02-16 13:39 刘下来 阅读(180) 评论(2) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-03-16 17:10 刘下来 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 直接上代码: db.GetList<Draw2D>(x => x.ProductId == id && x.EditionNo == no) .OrderBy(x => x.CreateTime.Desc()) .ToList(); 这个无法排序!!! return db.GetList<Draw2 阅读全文
posted @ 2020-03-17 10:43 刘下来 阅读(1239) 评论(0) 推荐(0) 编辑
摘要: 源码如下: public Element(string label, string id) : this() { Label = label; Id = id; } public Element(string label, string id, string className) : this(la 阅读全文
posted @ 2020-03-13 09:22 刘下来 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 来源 int类型变量之间运算,无论是加减乘除得到的结果都是int类型,如果有一个更大范围的变量类型参与运算,那就是最大类型的,比如double int a = 10; int b = 3; double c = a / b; Console.WriteLine(c);//3 double d = a 阅读全文
posted @ 2020-03-05 09:46 刘下来 阅读(941) 评论(0) 推荐(0) 编辑
摘要: 2020-03-04 closest():当点击确认按钮时,需要获取表单内容,此时就需要这个函数来查找他的指定父级元素..... $(this).closest("tr").find(".lotNo").val(str); 获取div中所有表单内容,并组成对象: $("#btnRegister"). 阅读全文
posted @ 2020-03-04 14:39 刘下来 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 2020-03-04 1. 字符串对比,是否相同 int string.Compare(string str1,string str2,ignoreCase:bool) 运用实例: /// <summary> /// 是否超级管理员 /// </summary> public bool IsSupe 阅读全文
posted @ 2020-03-04 09:47 刘下来 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 直接上代码: 千万级别差一秒,再加一个零,差5s左右,所以用Guid比较合理! 阅读全文
posted @ 2019-07-17 22:45 刘下来 阅读(571) 评论(0) 推荐(1) 编辑
该文被密码保护。 阅读全文
posted @ 2019-07-15 12:16 刘下来 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 为什么要使用泛型: 编写程序时,经常遇到两个模块功能非常相似,只是一个是处理int数据,另一个是处理string数据,或者其他自定义的数据类型,但我们只能分类写多个方法去处理每个数据类型,因为方法的参数类型不同。 上面的一种解决方法:如果我写一个object类型的类,它可以接收任何数据类型! < 缺 阅读全文
posted @ 2019-07-04 16:24 刘下来 阅读(541) 评论(0) 推荐(0) 编辑