立即执行函数表达式

立即执行函数主要是为了防止全局变量污染
const abc = (() => {
console.log(’‘33333’’)
})()

猜你喜欢

转载自blog.csdn.net/liangkaihuaen/article/details/106718450