变量声明和函数声明提升
摘要:var getName = function(){ console.log(2); } function getName (){ console.log(1); } getName(); 上面输出结果为2 function getName(){ //函数声明提升到顶部 console.log(1);
阅读全文
posted @ 2019-06-25 23:06
posted @ 2019-06-25 23:06
posted @ 2019-06-11 10:40
posted @ 2019-06-11 10:33