function A(  ){
  this.m=10;
}
var a=new A(  );
console.log(A.constructor==Function);             // 返回true
console.log(Function.constructor);                // 返回Function(  )
console.log(String.constructor==Object);          // 返回false
console.log(String.constructor);                  // 返回Function(  )

解决方案 »

  1.   

    楼主,你是不是想说所有的原生类型的constructor都返回Function???
      

  2.   

    总感觉String.constructor应该返回Object
      

  3.   

    var str = new String('test');
    这样看,String是字符串的构造函数吧,所以就返回Function喽~
      

  4.   

    function A( ){
       this.m=10;
    }
    var a=new A( );
    console.log(A.constructor==Function); // 返回true
    console.log(Function.constructor); // 返回Function( )//
    console.log(String.constructor==Object); // 返回false//
    console.log(String.constructor); // 返回Function( )
    个人看法:构造函数就是Function
      

  5.   

    String.constructor == Object
    根据你的本意 这里不对
    类属的东西 不能用 相等 判断js里一般是 typeof String.constructor == 'object'