Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 217 Bytes

提升.md

File metadata and controls

13 lines (10 loc) · 217 Bytes
console.log(a)
var a = 1

答案:undefined

提升存在的根本原因是为了解决函数互相调用的情况,如:

function test1{
    test2()
}
function test2{
    test1()
}