各位好
我是參考這裡的資料
http://fireqqtw.logdown.com/posts/258823-javascript-function-notes
function one() {
console.log('global one');
}
function two() {
console.log('global two');
}
function hoistFun() {
console.log(typeof one);
console.log(typeof two);
one();
two();
function one() {
console.log('local one');
}
var two = function() {
console.log('local two');
}
}