摘要: 有些东西需要先告诉你怎么用,再去理解定义 关于变量的提升 function test () { console.log(a) var a = 100 console.log(a) }; test () // undefined // 100 执行步骤 function test () { var a = undefined console.log(a) a = 100... 阅读全文
posted @ 2019-06-14 13:55 郭扬 阅读(175) 评论(0) 推荐(1) 编辑
摘要: 有些东西需要先告诉你怎么用,再去理解定义 关于变量的提升 function test () { console.log(a) var a = 100 console.log(a) }; test () // undefined // 100 执行步骤 function test () { var a = undefined console.log(a) a = 100... 阅读全文
posted @ 2019-06-14 13:51 郭扬 阅读(176) 评论(0) 推荐(0) 编辑