看WEB 2.0实战书中的部分技术资料 引用 很随笔,很杂乱

看WEB 2.0实战书中的部分技术资料 引用 很随笔,很杂乱

 var 不能用NULL赋值,因为编译器,不能由此推断var变量的类型。
as 运算符类似于强制转换操作;但是,如果转换不可行,as 会返回 null 而不是引发异常。更严格地说,这种形式的表达式

action Two interesting additions to the 2.0 C# language are the Action<> object, and anonymous methods. The Action<> object lets you specify an action to be performed on an object and the anonymous method lets you specify a method with no body (thus... the anonymity).
http://www.c-sharpcorner.com/UploadFile/rmcochran/anonymousMethods04022006141542PM/anonymousMethods.aspx

你的程序支持 IIS6 - Web Garden 吗?http://blog.joycode.com/lostinet/archive/2005/02/02/44017.aspx

 


SetupWidgets( wi => true );的解释如下:
SetupWidgets( wi => true );
This means, the following statement is always true for all widget instances:
widget.IsFirstLoad = isWidgetFirstLoad(instance);
But you can also specify expressions that return true or false based on a specific
condition:
SetupWidgets( wi => wi.ColumnNo == 1 );

关于$在JQUERY中的解释

$() 方法是在DOM中使用过于频繁的 document.getElementById() 方法的一个便利的简写,就像这个DOM方法一样,这个方法返回参数传入的id的那个元素。

比起DOM中的方法,这个更胜一筹。你可以传入多个id作为参数然后 $() 返回一个带有所有要求的元素的一个 Array 对象。

http://www.cnblogs.com/kaixin110/archive/2007/09/14/892474.html

http://www.cnblogs.com/gboxcc/archive/2009/02/09/use_jquery_from_zero.html
http://www.cnblogs.com/zhangziqiu/archive/2009/04/30/jQuery-Learn-1.html
http://www.cnblogs.com/anytao/archive/2009/04/30/anytao-mvc-04-actionlinktalk.html

 

==

其实美元符号"$"在脚本中JavaScript JS

这样解释最容易理解,也最简洁:

“从美元符号($)写起吧,不知从何时起$符号开始在js代码里流行开了,但$并不是js中的一个特殊的关键字,他其实是因为某个懒人(聪明的程序员都很懒^_^)的写了一段类似下面的代码而产生的:

function $(id)  
{  
  return document.getElementById(id);  

} ”

 

引用自:http://www.cnblogs.com/gboxcc/archive/2009/02/09/use_jquery_from_zero.html

posted on 2009-04-30 17:19  公众号73只蚂蚁  阅读(259)  评论(0编辑  收藏  举报

导航