闭包传入参数 window & undefined
大家在前端开发中对闭包应该和熟悉了,也就是几种常见的闭包方式:
1:
var undefined = 123;(function(undefined){ console.info(undefined);})() //在参数中传入undefined和不传情况下会输出什么?
参考:
http://www.iamued.com/qianduan/1450.html
发布时间: 2012-10-09 10:21:45 作者: rapoo
闭包传入参数 window & undefined
大家在前端开发中对闭包应该和熟悉了,也就是几种常见的闭包方式:
1:
var undefined = 123;(function(undefined){ console.info(undefined);})() //在参数中传入undefined和不传情况下会输出什么?