08 2014 档案

JS拼凑方法之join
摘要:var s=['a','b','c'].join(); 阅读全文

posted @ 2014-08-25 10:26 ~紫鱼~ 阅读(392) 评论(0) 推荐(0)

Yslow-23条军规
摘要:YslowYahoo发布的一款基于FireFox的插件,主要是为了提高网页性能而设计的,下面是它提倡了23条规则,还是很不错的,分享一下:1.减少HTTP请求次数合并图片、CSS、JS,改进首次访问用户等待时间。2. 使用CDN就近缓存==>智能路由==>负载均衡==>WSA全站动态加速3. 避免空... 阅读全文

posted @ 2014-08-14 10:02 ~紫鱼~ 阅读(352) 评论(0) 推荐(0)

varchar和nvarchar的区别 数据来证明
摘要:如果一个数据是"N好"数据类型是varchar时:select len(vartest) from testselect datalength(vartest) from text将会分别显示2和3而当数据类型为nvarchar时:select len(nvartest) from testsele... 阅读全文

posted @ 2014-08-13 21:39 ~紫鱼~ 阅读(194) 评论(0) 推荐(0)

对SQL语句进行过滤的函数
摘要:/// /// 过滤SQL非法字符串 /// /// /// public static string Filter(string value) { if (string.IsNullOrEmpty(value)) return string.Empty; value = Regex.Rep... 阅读全文

posted @ 2014-08-13 21:38 ~紫鱼~ 阅读(2684) 评论(0) 推荐(0)

使用T4模板调用Sqlserver链接生成自己的模板
摘要:'__MigrationHistory'").ToArray();#>using Reap.Models.Models;using Reap.IDAL.Repositories;using Reap.DAL.UnitOfWork;namespace { public class IRep... 阅读全文

posted @ 2014-08-13 11:18 ~紫鱼~ 阅读(806) 评论(0) 推荐(0)

不错的日期控件
摘要:moment.js 阅读全文

posted @ 2014-08-06 15:20 ~紫鱼~ 阅读(121) 评论(0) 推荐(0)