<script>
var number=2;
var obj={
number:4,
fn1:(function(){
this.number*=2;
number=number*2;
var number=3;
return function(){
this.number*=2;
number*=3;
alert(number);
}
})(),
}
var fn1=obj.fn1;
alert(number);
fn1();
obj.fn1();
alert(window.number);
alert(obj.number);
alert(fn1.number);
//4/9/27/8/8/undefined
</script>

思考如下;