上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 46 下一页
摘要: js求时间差 var date1=new Date(); //开始时间 alert("aa"); var date2=new Date(); //结束时间 var date3=date2.getTime()-date1.getTime() //时间差的毫秒数 //计算出相差天数 var days=Math.floor(date3/(24*3600*1000)) //计算出小... 阅读全文
posted @ 2017-04-17 11:33 小小高 阅读(290) 评论(0) 推荐(1)
摘要: CookieCollection cookList = new CookieCollection(); cookList.Add(new Cookie("cf_clearance", "31233dc649a45d559ab4f624eba501646d9a7c8a-1492325756-57600", "/", ".taokemiao.com")); 阅读全文
posted @ 2017-04-16 15:22 小小高 阅读(3080) 评论(0) 推荐(0)
摘要: 测试 阅读全文
posted @ 2017-04-14 11:51 小小高 阅读(374) 评论(0) 推荐(0)
摘要: //修改前namespace CleanCSharp.Errors.Dirty { public class SomeClass { public int DoSomeProcess(int? id) { if (id == null) { return -1; // ... 阅读全文
posted @ 2017-04-10 13:42 小小高 阅读(314) 评论(0) 推荐(0)
摘要: //修改前 public class Customer { public string FirstName { get; set; } public string SecondName { get; set; } public bool IsPriorityCustomer { get; set; } public decimal AnnualIncome { g... 阅读全文
posted @ 2017-04-10 13:24 小小高 阅读(263) 评论(0) 推荐(0)
摘要: //一个returnnamespace CleanCSharp.Methods.Dirty { class MethodExitPoints { public string GenerateAgeAppropriateGreeting( int customerAgeInYears) { string gre... 阅读全文
posted @ 2017-04-10 13:08 小小高 阅读(670) 评论(0) 推荐(0)
摘要: namespace CleanCSharp.Methods.Dirty { class BooleanSwitchingArgumentsExample { public void CallingCode() { if (DateTime.Now.Hour < 12) { OutputGreetin 阅读全文
posted @ 2017-04-10 13:03 小小高 阅读(210) 评论(0) 推荐(0)
摘要: //修改前namespace CleanCSharp.Methods.Dirty { class Utils { public int Process(Customer customer) { if (string.IsNullOrWhiteSpace(customer.FirstName) ... 阅读全文
posted @ 2017-04-07 14:40 小小高 阅读(223) 评论(0) 推荐(0)
摘要: 命名长度要适当: 用这种长度: 阅读全文
posted @ 2017-04-07 14:21 小小高 阅读(211) 评论(0) 推荐(0)
摘要: /// /// 根据参数列表返回sql条件(where后) /// /// /// //返回如 a=@a and b=@b public string getSqlFilterCondition(List list) { List uniqueFilter = new... 阅读全文
posted @ 2017-04-06 12:53 小小高 阅读(1488) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 46 下一页