var k = (function fun(x) { if(x>0) { x--; console.log(x);} else{ console.log("lala"); return "lala";} fun(x); })(3)console.trace(k);打印的結果是210lalaundefined(anonymous) @ test.html:47為什么是undefined呢?。???
JS函數return結果undefined
精慕HU
2018-12-26 22:19:30