js callback

收录几篇文章

点击打开链接http://luxiao1223.blog.51cto.com/2369118/482885

点击打开链接http://mao.li/javascript/javascript-callback-function/

点击打开链接http://www.phpv.net/html/1700.html

点击打开链接http://msdn.microsoft.com/zh-cn/library/vstudio/bb397687.aspx

js 的callback 让我联想到c#里的lambda表达式,python里也有貌似。

delegate int del(int i);
static void Main(string[] args)
{
    del myDelegate = x => x * x;
    int j = myDelegate(5); //j = 25
}

点击打开链接http://www.planabc.net/2009/09/22/iframe_onload/









posted @ 2013-04-24 22:39  lein.wang  Views(105)  Comments(0Edit  收藏  举报