随笔分类 -  Skill

摘要:declare @total int; declare @count int; set @count=0; SELECT @total=COUNT(1) FROM TB_JJ; create table #T ( rid int PRIMARY KEY, sys_guid NVARCHAR(40) 阅读全文
posted @ 2018-08-10 15:44 Joe·Zhou 阅读(311) 评论(0) 推荐(0)
摘要:传统设计T(id,a,b,c,d,e,f,g,e,f.....),其中有一部分字段是不经常变化的,有一部分是经常变化的. 拆表思路: T(id,a,b,c,d): 一些不怎么变化又经常查询的字段 T1(id,e,f,g):一些不常用字段 T2(id,name,value): id name valu 阅读全文
posted @ 2018-08-10 15:22 Joe·Zhou 阅读(418) 评论(0) 推荐(0)
摘要:最早的写法: 最新的写法: 新的写法比原始写法性能高出太多(原语句执行会超时),最大的原因是对with语句理解有误!!! 阅读全文
posted @ 2018-08-04 16:24 Joe·Zhou 阅读(737) 评论(0) 推荐(0)
摘要:在编程过程中常常会遇到这样一些困扰: 场景:domain实体A具有属性(B,C,D,E),那么我们建实体A的Class具有属性B,C,D,E.但是对于不同角色A的表现形式可能不一样,在财务看来可能需要B,C,D,E,F属性(F为计算属性),在生产需要B,C,D,E,G属性(G为XX属性),在销售看来 阅读全文
posted @ 2016-06-24 23:28 Joe·Zhou 阅读(578) 评论(0) 推荐(1)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace Unit { c... 阅读全文
posted @ 2016-06-22 22:02 Joe·Zhou 阅读(798) 评论(0) 推荐(0)
摘要:TreeBuilder 阅读全文
posted @ 2016-06-04 07:13 Joe·Zhou 阅读(1072) 评论(0) 推荐(0)
摘要:负载均衡算法 阅读全文
posted @ 2016-06-03 21:59 Joe·Zhou 阅读(464) 评论(0) 推荐(0)
摘要:动机:.net 默认的时间序列化方式为\/Date(数字 时区)\/,序列化成JSON在前端很难处理,有没有一种好的处理方式呢?改进: 1 JSON = new function(){ 2 this.decode = function(){ 3 var filte... 阅读全文
posted @ 2015-05-17 22:40 Joe·Zhou 阅读(380) 评论(0) 推荐(0)
摘要:引擎渲染速度竞赛 条数据 × 次渲染测试建议在高版本的浏览器上进行测试,避免浏览器停止响应测试环境:开始测试» 阅读全文
posted @ 2013-08-02 17:17 Joe·Zhou 阅读(1913) 评论(2) 推荐(0)
摘要:http://www.codeproject.com/Articles/325228/Choosing-technologies-for-NET-project 阅读全文
posted @ 2013-06-22 10:01 Joe·Zhou 阅读(253) 评论(0) 推荐(0)
摘要:MS的链表是一个双向链表,自己实现一个单向链表。 阅读全文
posted @ 2013-03-20 11:59 Joe·Zhou 阅读(304) 评论(0) 推荐(0)
摘要:有10000个无序排列的数字(1<=N<=9999),其中有一个重复的数字,设计一个算法快速高效的找到重复数字。 public class Cacl { public int GetRepeatNumber(int[] arr) { while (true) { int t = arr[0]; if (arr[t] != t) { arr[0] = arr[t]; arr[t] = t; ... 阅读全文
posted @ 2013-02-26 18:00 Joe·Zhou 阅读(334) 评论(2) 推荐(1)
摘要:1 (function ($) { 2 $.fn.getData = function (itemTag) { 3 var obj; 4 if (itemTag) { 5 obj = []; 6 this.find(itemTag).each(function () { 7 obj.push($(this).getData()); 8 }); 9 return obj;10 }11 else {... 阅读全文
posted @ 2013-01-24 19:46 Joe·Zhou 阅读(605) 评论(0) 推荐(0)
摘要:number.xml:<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/xsl" href="number.xsl" ?><root> <start>6</start></root>number.xsl:<?xml version="1.0" encoding="utf-8" ?><xsl:styleshe 阅读全文
posted @ 2012-09-25 10:48 Joe·Zhou 阅读(392) 评论(0) 推荐(0)
摘要:string data = "Name=zhoulq&Sex=" + HttpUtility.UrlEncode("男"); byte[] msg=Encoding.UTF8.GetBytes(data); HttpWebRequest req = HttpWebRequest.Create("http://localhost:1256/Accept.aspx") as HttpWebRequest; req.ContentType = "application/x-www-form-urlencoded... 阅读全文
posted @ 2012-09-19 14:38 Joe·Zhou 阅读(519) 评论(9) 推荐(0)
摘要:Code 1 using System; 2 3 namespace Demo 4 { 5 class Program 6 { 7 static void Main(string[] args) 8 { 9 //实验110 Console.WriteLine("实验1,弱引用");11 Object obj = new Object();12 WeakReference wr = new WeakReference(obj);13 ... 阅读全文
posted @ 2011-12-07 14:47 Joe·Zhou 阅读(320) 评论(2) 推荐(0)
摘要:下载 阅读全文
posted @ 2011-12-04 16:20 Joe·Zhou 阅读(172) 评论(0) 推荐(0)
摘要:效果图: 阅读全文
posted @ 2011-10-25 15:02 Joe·Zhou 阅读(970) 评论(2) 推荐(0)
摘要:/*****************************************************CreateBy:joe zhou*CreateDate:2011-9-20*Description:数组统计函数****************************************************/$.extend({ max: function (arr) { return cacl(arr, function (item, max) { if (!(max > item)) { return... 阅读全文
posted @ 2011-09-21 09:37 Joe·Zhou 阅读(838) 评论(1) 推荐(0)
摘要:1 /**************************************************** 2 *CreateBy:joe zhou 3 *CreateDate:2011-9-4 4 *Description:字符串辅助函数 5 ****************************************************/ 6 //String.prototype = { 7 // caption: function () { 8 9 // },10 // leftPad: function (padChar, width) {11 // ... 阅读全文
posted @ 2011-09-08 08:58 Joe·Zhou 阅读(348) 评论(0) 推荐(0)