js-“定义式”函数-“赋值式”函数-执行顺序

function fn(){
var a="new";
debugger;
alert(a);
}
fn();

var a=function (){
var a="new";
debugger;
alert(a);
}
a();
posted @ 2015-02-12 10:26  zhouyan_jsj  Views(141)  Comments(0Edit  收藏  举报