Closed RichQin closed 4 years ago
var func; { if(true){ var name = 'zzz'; func = function (){ console.log(name); } func(); } } name = 'ttt'; func(); console.log(name);
感谢,已修改。
var func; { if(true){ var name = 'zzz'; func = function (){ console.log(name); } func(); } } name = 'ttt'; func(); console.log(name);