function outerFn() {
console.log('Outer function');
function innerFn() {
console.log('Inner function');
}
return innerFn;
}
var fnRef = outerFn();
#=>Outer function
fnRef();
#=>Inner function
为什么 fnRef 会是 inner function 而不是 outer function