//第一种
(function() {
console.info( this );
console.info( arguments );
})( window );
//第二种
(function() {
console.info( this );
console.info( arguments );
}( window ) );
javascript两种自调用匿名函数
最新推荐文章于 2022-06-08 19:42:29 发布
//第一种
(function() {
console.info( this );
console.info( arguments );
})( window );
//第二种
(function() {
console.info( this );
console.info( arguments );
}( window ) );