function ok(){ var a = 0; console.log(a); } function ko(){ var b = a; console.log(b); } ok(); ko();
像这样会提示:Uncaught ReferenceError: a is not defined。
怎么解决?
Tobey_滔
stone310
相关分类