a();
function a() {
alert('1')
}
var a = function() {
alert('2')
}
a();
// 先弹出 alert(1) ,再弹出alert(2)
a();
var a = function() {
alert('2')
}
function a() {
alert('1')
}
a();
// 先弹出 alert(1) ,再弹出alert(2)
https://www.slideshare.net/lijing00333/javascript-engine
标签:function,先弹,变量,alert,提升,var,js,再弹 From: https://www.cnblogs.com/Running00/p/16730181.html