摘要: public class DelayQueue<T> { private List<DelayQueueItem<T>> items = new List<DelayQueueItem<T>>(); public void Enqueue(T item) { Enqueue(item, TimeSp 阅读全文
posted @ 2020-08-21 17:54 大长腿的猪 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: 先看下人传人的解果 本人朋友圈是第一发的这个文案和图片,随后的几分钟里出现了3个转发。虽然不是很多,但是也代表了,人传人的效果。 来看下原文案的评论和点赞 原理分析 时机 发布这条朋友圈的当天是母亲节,所以文案中祝妈妈节日快乐。 还能祝妈妈节日快乐的,应该就是母亲生日当天了,那文案应该就是母亲节快乐 阅读全文
posted @ 2020-05-11 23:40 大长腿的猪 阅读(466) 评论(0) 推荐(0) 编辑
摘要: Task 常规使用 无返回值Task 普通的无返回值方法: 实现异步的方法只用方法添加 async关键字, 方法内部有await 等待执行就可以了 效果图如下 当然如果方法无async和await想实现异步也是可以的, 需要开启一个任务,然后返回Task.FromResult(0),当一个方法的返回 阅读全文
posted @ 2019-01-14 11:35 大长腿的猪 阅读(231) 评论(0) 推荐(0) 编辑
摘要: Expression> expression = t => true; expression = expression.And(t => t.AAA == 1); expression = expression.And(t => t.BBB > 1); var ds = products.AsQueryable().Where(expression).ToList(); 阅读全文
posted @ 2017-07-11 14:05 大长腿的猪 阅读(1178) 评论(0) 推荐(0) 编辑
摘要: public partial class BaseDalwhere T :class { //DbContext context = new HMOAContainer(); DbContext context = ContextFactory.GetContext(); //增加 public int Add(T userInfo) ... 阅读全文
posted @ 2016-09-16 21:32 大长腿的猪 阅读(560) 评论(2) 推荐(0) 编辑
摘要: --2.思路:--每页5条数据,要看第3页的数据--1>先为每条记录增加一个行号。row_number()--2>通过用户要查看的数据,使用行号进行筛选。--3每页5条,要看第3也,因该是从第(2*5)+1 ... 3*5 select * from (select *,rn=row_number( 阅读全文
posted @ 2016-06-17 20:54 大长腿的猪 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 访问失败, 解决方案,URL要正确 阅读全文
posted @ 2016-06-07 17:41 大长腿的猪 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 错误提示: The animation state run could not be played because it couldn't be found!Please attach an animation clip with the name 'run' or call this function only for existing animations.UnityEngine.Anima... 阅读全文
posted @ 2016-05-21 14:41 大长腿的猪 阅读(498) 评论(0) 推荐(0) 编辑
摘要: Repeater 不能和GridView 一样可以直接操作行 但是有和GridView一样的FindControl查找控件方法 解决方案: 想要获取的值用 Label控件代替 后台实现方法: for (int i = 0; i < data1.Items.Count; i++) { CheckBox cbx = data1.Items[i]... 阅读全文
posted @ 2016-05-19 22:12 大长腿的猪 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 错误写法: 解决方法: 原理:点击一次就会POS请求一次,说以当点击时就先改变了值。 阅读全文
posted @ 2016-05-19 18:12 大长腿的猪 阅读(336) 评论(0) 推荐(0) 编辑