摘要:
var A=function(){this.m=10;return 20;}var aa=new A();alert(aa.m);var A=function(){this.m="this is it";var that={};that.name="that is that";return that;}var o=new A();alert(o.m);答案就很明显了~第一个是10 因为未返回对象,所以默认返回function对象(this指向Function)第二个是未定义,因为返回的是对象,对象里木有m转自:http://99jty.com/?p=54 阅读全文