账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    js原型链问题
    50
    0
        Function.prototype.method1 = function(){
          console.log("function");
        }
        
        function func1(a,b,c){
          return a+b+c;
        }
        
        func1.method1();
        func1.method1.method1();

    我的理解是:
    fun1.method1(); 调用的是Function.prototype里的method1()方法。
    func1.method1.method1();
    不懂为什么 func1.method1 里能调用 method1()方法?

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部