看到这么一句代码:
(0, eval)( "1+1" ); //2
于是我仿照了一个:
( 0, function( a ) { console.log( a ); //"hello world" } )( "hello world" ); ( function( a ) { console.log( a ); //为啥不传到这里 }, function( b ) { console.log( b ); //"hello world" } )( "hello world" );
能解释下
看到这么一句代码:
(0, eval)( "1+1" ); //2
于是我仿照了一个:
( 0, function( a ) { console.log( a ); //"hello world" } )( "hello world" ); ( function( a ) { console.log( a ); //为啥不传到这里 }, function( b ) { console.log( b ); //"hello world" } )( "hello world" );
能解释下