函數(shù)的定義和執(zhí)行一起完成:
(function arr(){?console.log('我是兩個(gè)括號(hào)');})()
!function(){console.log('1223');}()
+function(){console.log('563')}();
-function(){console.log(53);}();
~function(){console.log(563);}()
匿名函數(shù):自執(zhí)行函數(shù)在全局作用域下不進(jìn)行預(yù)解析加匈,當(dāng)代嗎執(zhí)行到這里的時(shí)候洞辣,定義和執(zhí)行一起完成
var ff=function(){
console.log(‘我是匿名函數(shù)’);
}