标签:
1、
function C () { this.a = 1; return false; } console.log (typeof new C());
object
function C () { this.a = 1; return "bbb" } console.log (typeof new C());
也是object
除非return {} ,才是真正return的值,其他的都是object
标签:
原文地址:http://www.cnblogs.com/danghuijian/p/4856302.html