Open lzcdev opened 5 years ago
var name = 'Tom'; (function () { if (typeof name == 'undefined') { var name = 'Jack' console.log(name); } else { console.log(name); } })();
Jack 关键在于var
Jack
var