Re: [問題] javascript 函數的提升

作者: mrbigmouth (大嘴先生)   2016-05-12 16:37:16
※ 引述《kisha024 (4545454554)》之銘言:
: 各位好
: 我是參考這裡的資料
: 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');
: }
: }
:

Links booklink

Contact Us: admin [ a t ] ucptt.com