今天偶然看到这么一句代码:
(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" );
瞬间????飞过,哪位大神能解释下?
炎炎设计
相关分类