看人家老的,两种我分不太清楚:似乎fancybox满足我的要求?感觉还不错的样子!!!!!!,但是这里面的参数是干什么的?(function (window, document, $, undefined) { //todo}(window, document, jQuery));还有这样写的...
分类:
其他好文 时间:
2014-07-16 23:11:42
阅读次数:
211
1 function goMasonry() { 2 // if ($container.data('masonry') != undefined) { 3 $container.isotope('destroy'...
分类:
Web程序 时间:
2014-07-10 13:33:13
阅读次数:
203
这是不是一个设计缺陷呢void(0)这种用法巧妙利用void关键字的特性返回undefined(且没有副作用)。因为不是关键字,比如直接使用undefined,内容可能被改写。再来看为啥使用0,而不是1,2,或"hello world"。因为它简单,并成了惯例。http://stackoverflo...
分类:
编程语言 时间:
2014-07-07 22:00:53
阅读次数:
267
#Vs2013单元测试功能对静态方法可以使用?前几天使用Vs2013的单元测试功能对某项目的DAL部分静态方法进行测试,总是报出Null of reference的错误。仔细检查代码后没有发现明显的错误,代码集成到小系统中也运行正常。而测试其他的非静态方法也是一切正常。长时间疑惑未解,网上也没有找到...
分类:
其他好文 时间:
2014-06-29 20:26:56
阅读次数:
204
1,c++规定后缀形式的++操作符有一个int行的参数,被调用时,编译器自动加一个0作为参数给他2,前缀返回一个reference,后缀返回一个const对象///////////////////////////////////////////////////////////////////////...
分类:
编程语言 时间:
2014-06-29 19:43:53
阅读次数:
228
JS是松散类型的语言,这一点JS的对象表现得尤为突出。那么如何来确定JS对象的具体类型呢?首先,我们可以使用typeof运算符确定其基本类型(number,object,function,undefined)。如果typeof运算符返回object我们再使用instanceof来确定该对象是否属于某...
分类:
Web程序 时间:
2014-06-27 16:35:22
阅读次数:
230
单元不能被循环引用(Circular unit reference)的。循环引用的意思是:A引用了B,而B又引用了A,且都是在interface部分进行引用。example:unit Unit1;interfaceusesUnit2;......unit Unit2;interfaceuses Un...
分类:
其他好文 时间:
2014-06-27 15:10:23
阅读次数:
233
1、错误描述
六月 26, 2014 10:53:26 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error
严重: Template processing error: "Expression data[text] is undefined on line 9, column 51 in inc/select.ftl."
Express...
分类:
其他好文 时间:
2014-06-27 09:58:53
阅读次数:
237
Cordova, Grunt and Coffee
You may reference to below if you deside to work with coffee instead of Javascript in Cordova project.
Prepare Cordova Helloworld Project
This guide is based on Hello Wo...
分类:
其他好文 时间:
2014-06-27 08:13:42
阅读次数:
230
1.javascript的数组API:
//定义数组
var pageIds = new Array();
pageIds.push('A');
数组长度
pageIds.length;
//shift:删除原数组第一项,并返回删除元素的值;如果数组为空则返回undefined
var a = [1,2,3,4,5];
var b = a.shift(); //a:[2,3,4...
分类:
Web程序 时间:
2014-06-26 14:20:09
阅读次数:
403