strange anonymous javascript function call

I was looking at [this][1] very cool snippet and i came across this weird line in the js and deleting that prevent the function from being invoked !+-+-+!+-+-+!+-+-+!+-+-+!+-+-+!+-+-+!+-+-+!+-+-+! function(d, w){ ... }(document, window); ,i wrapped the function with ( ) as it supposed to be and it works as intended. (function(d, w){ ... })(document, window); so my question is what is that weird line and why does it work? my wild guest is that it is some kind IIFE... [1]:
its not ! operator tricky .. !

以上就是strange anonymous javascript function call的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准