参考资料:
http://dancewithnet.com/2008/05/07/javascript-anonymous-function/

http://www.ibm.com/developerworks/cn/web/wa-javascript.html
http://shiningray.cn/functional_javascript_programming.html

var s=function(a,b){return a+b}(5,3);
alert(s);//8

var

阅读全文
类别:javascript & dom & ajax 查看评论
posted on 2009-06-04 14:23  星光~  阅读(93)  评论(0)    收藏  举报