摘要:
static IEnumerable<MethodInfo> GetExtensionMethods(Assembly assembly, Type extendedType) { var query = from type in assembly.GetTypes() where !type.Is 阅读全文
摘要:
SELECT CONVERT(CHAR(100), SERVERPROPERTY('Servername')) AS Server, msdb.dbo.backupset.database_name, msdb.dbo.backupset.backup_start_date, msdb.dbo.ba 阅读全文
摘要:
https://github.com/ReubenBond/DeepCopy 阅读全文
摘要:
sql SqlServer 不可复读和幻读的定义,是根据自己的理解写出来的,不是真正的定义,哈哈! 一、定义 1.脏读 事务A向表中插入了一条数据,此时事务A还没有提交,此时查询语句能把这条数据查询出来,这种现现象称为脏读;脏读比较好理解 2.不可重复读 一个事务A第一次读取的结果之后, 另外一个事 阅读全文
摘要:
jQuery(function ($) { // 备份jquery的ajax方法 var _ajax = $.ajax; // 重写ajax方法,先判断登录在执行success函数 $.ajax = function (opt) { var _success = opt && opt.success || function (a, b) { }; var _opt = $.extend(op... 阅读全文
摘要:
1.创建(安装)windows服务:输入sccreatetest binPath= E:\Test\test.exe 回车。注意:“binPath=”后面必须加一个空格。 这时候就可以在计算机>>服务 中自己新建的 test 服务2.卸载服务 sc deletetest3.语法:sccreate|delete|config服务名[参数] 阅读全文
摘要:
IIS6注册HttpModule IIS7注册HttpModule 阅读全文
摘要:
var tt = document.getElementById(id); var ttop = tt.offsetTop;//绝对位置 left 的距离 var thei = tt.clientHeight; var tleft = tt.offsetLeft;//绝对位置距离页面的 top的高 while (tt = tt.offsetParent) { ttop += tt.offsetTop; tleft += tt.offsetLeft; }var treebg=document.getElementById("test"); treebg.style.top = 阅读全文