摘要: http://benalman.com/news/2010/11/immediately-invoked-function-expression/Immediately-Invoked Function Expression (IIFE)// Either of the following two patterns can be used to immediately invoke// a function expression, utilizing the function's execution context to// create "privacy."(fu 阅读全文
posted @ 2014-03-14 11:13 Marco CAO 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Reference from 悟透JavaScript//语法甘露:var object = //定义小写的object 基本类,用于实现最基础的方法等{ isA: function(aType) //一个判断类与类之间以及对象与类之间关系的基础方法 { var self = this; while(self) { if (self == aType) return true; self = s... 阅读全文
posted @ 2010-08-27 13:18 Marco CAO 阅读(272) 评论(0) 推荐(0) 编辑
摘要: ;WITH CTEAS(SELECTEventName, EventValue, ActiveFrom, [version],Ranking = DENSE_RANK() OVER(PARTITION BY EventName, ActiveFrom ORDER BY [version] desc)FROM dbo.Schedulewhere (EventName IN ('ECode', 'EFSchools Image V2', 'ESchools Caption V2', 'ESchools Copy1 V2', ' 阅读全文
posted @ 2010-03-23 10:42 Marco CAO 阅读(166) 评论(0) 推荐(0) 编辑