a.prototype 怎么弹出:function a(){}?
直接就是a.prototype的函数主题了.new a.prototype弹出的object指的是什么?
你的 a.prototype是一个函数,函数是对象[object].

解决方案 »

  1.   

    <script>
    function a(){

    }
    a.prototype=function(){alert(this)}
    a.b = function(){alert(this)}
    a.prototype()//弹出:function a(){}
    new a.prototype//弹出:[object Object]
    a.b              //也弹出:function a(){}
    new a.b()        //也弹出:[object Object]
    </script>好像prototype没什么特殊性啊
      

  2.   

    <script>
    function a(){

    }
    a.prototype=new function(){alert(this)}//弹出:[object Object]
    a.b =new  function(){alert(this)}//弹出;[object Object]
    a()
    </script>
    加个new 也不能表现什么吧~
      

  3.   

    prototype通常是用对象继承的。
    像楼主这样用的话,当然不会有什么特殊性了。