1.以下JS代码运行的结果是什么? 为什么? var foo='hello'; (function(){ var foo=foo||'world' ; console.log(foo); })(); 答案:world。 2.