this

作者: 逆风飘游的鱼 | 来源:发表于2019-08-22 15:24 被阅读0次

    fn()

    this => window/global

    obj.fn()

    this => obj

    fn.call(xx)

    this => xx

    fn.apply(xx)

    this => xx

    fn.bind(xx)

    this => xx

    new Fn()

    this => 新的对象

    fn = ()=> {}

    this => 外面的 this

    相关文章

      网友评论

          本文标题:this

          本文链接:https://www.haomeiwen.com/subject/bctsdctx.html