(function(){
待执行函数
}())
(function(){
待执行函数
})()
Both versions are written for performing the function immediately, namely IIFE (Immediately Invoked Function Expression). Such a function where the function definition directly executed.
(function(){
待执行函数
}())
(function(){
待执行函数
})()
Both versions are written for performing the function immediately, namely IIFE (Immediately Invoked Function Expression). Such a function where the function definition directly executed.