摘要: ​ 先看一题 var name = 'Tom'; function () { if(typeof name == 'undefined'){ var name = 'jack' console.log('GoodBye' + name) }else{ console.log('Hello'+name 阅读全文