随笔分类 - 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)
阅读全文
摘要:传统设计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
阅读全文
摘要:最早的写法: 最新的写法: 新的写法比原始写法性能高出太多(原语句执行会超时),最大的原因是对with语句理解有误!!!
阅读全文
摘要:在编程过程中常常会遇到这样一些困扰: 场景: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属性),在销售看来
阅读全文
摘要: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...
阅读全文
摘要:动机:.net 默认的时间序列化方式为\/Date(数字 时区)\/,序列化成JSON在前端很难处理,有没有一种好的处理方式呢?改进: 1 JSON = new function(){ 2 this.decode = function(){ 3 var filte...
阅读全文
摘要:引擎渲染速度竞赛 条数据 × 次渲染测试建议在高版本的浏览器上进行测试,避免浏览器停止响应测试环境:开始测试»
阅读全文
摘要:http://www.codeproject.com/Articles/325228/Choosing-technologies-for-NET-project
阅读全文
摘要:有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; ...
阅读全文
摘要: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 {...
阅读全文
摘要: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
阅读全文
摘要: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...
阅读全文
摘要: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 ...
阅读全文
摘要:/*****************************************************CreateBy:joe zhou*CreateDate:2011-9-20*Description:数组统计函数****************************************************/$.extend({ max: function (arr) { return cacl(arr, function (item, max) { if (!(max > item)) { return...
阅读全文
摘要: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 // ...
阅读全文
浙公网安备 33010602011771号