js-“定义式”函数-“赋值式”函数-执行顺序
function fn(){
var a="new";
debugger;
alert(a);
}
fn();
var a=function (){
var a="new";
debugger;
alert(a);
}
a();
function fn(){
var a="new";
debugger;
alert(a);
}
fn();
var a=function (){
var a="new";
debugger;
alert(a);
}
a();