2018.3.21前端常見面試題

1.javascript (function(){ var a=b=1; console.log(a); })() console.log(a,b); VM187:3 1 VM187:5 Uncaught ReferenceError: a is not defined at <anonymous>:5:13 註釋:console.log(a);輸出1, a局部做用域,b沒有聲明(爲全局做
相關文章
相關標籤/搜索