function aa(){??? ?console.log(this);??? ?(function fn(){??? ? ?? ??? ?console.log(this)??? ? ?? ?})();?}兩個(gè)函數(shù)的this都指向window但是window.aa有定義?? window.fn卻是未定義??? this都指向window? 為什么寫成window.fn? 就會(huì)報(bào)錯(cuò)沒事找事,? 忽然想到的問題,? 求大神指點(diǎn)下
this 的問題
后知后覺88
2017-05-11 09:58:42