柔城

SOSOFT articles

2013年12月11日

html5画布的旋转效果

摘要: keleyi.htm的代码如下: 1 2 3 4 html旋转画布-柯乐义 5 6 7 8 9 10 11 keleyi.js的代码如下: 1 /* 2 * 功能:画布旋转 3 * http://keleyi.com 4 * 柯乐义 copyright 5 */ 6 (function(){ 7 var canvas=null, 8 context=null, 9 angle=0;10 function resetCanvas(){11 canvas=document.getElementById("ke"+"leyi");12 ... 阅读全文

posted @ 2013-12-11 23:37 柔城 阅读(3288) 评论(0) 推荐(0) 编辑

C#将集合快速排序

摘要: C#实现集合排序类。说明:1、集合类型参数化;2、可根据集合中的对象的各个属性进行排序,传入属性名称即可;注:属性必须实现了IComparable接口,C#中int、datetime、string等基本类型都已经实现了IComparable接口。 1 /// 2 /// 对集合进行排序,如 3 /// List users=new List(){.......} 4 /// ListSorter.SortList,User>(ref users,"Name",SortDirection.Ascending); 5 /// 6 public clas... 阅读全文

posted @ 2013-12-11 18:06 柔城 阅读(2416) 评论(1) 推荐(0) 编辑

导航