Skip to content

this 复杂调用 示例代码好像有bug #554

@PikaBin

Description

@PikaBin

关于 对象方法与this 这一节,当我看到 “复杂的方法调用可能会导致this丢失”,然后试着直接将下面一个通过三元运算符去调用函数的 代码直接粘贴到浏览器运行的时候,并没有发现预期中的error,反而能够正常运行,请问这是不是出现了bug?我用的是Chrome浏览器

Metadata

Metadata

Assignees

No one assigned

    Labels

    SolvedProblem solved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions