将函数矮化成表达式,一次性函数
var foo = function(){
console.log(2)
}();
+ function(){
console.log(2)
}();
- function(){
console.log(2)
}();
! function(){
console.log(2)
}();
标签:function,console,log,js,IIFE,表达式,函数
From: https://www.cnblogs.com/gao-ch/p/16626112.html