foo(); var a=true; if(a){ function foo(params) { console.log("a") } }else{ function foo(params) { console.log("b") } }
思考下,上面代码执行会输出什么?
再看下面的
标签:function,console,函数,js,一道,params,foo,log From: https://www.cnblogs.com/beileixinqing/p/17187668.html
foo(); var a=true; if(a){ function foo(params) { console.log("a") } }else{ function foo(params) { console.log("b") } }
思考下,上面代码执行会输出什么?
再看下面的
标签:function,console,函数,js,一道,params,foo,log From: https://www.cnblogs.com/beileixinqing/p/17187668.html