Skip to content

new章节,对执行顺序解释有点问题 #199

Open
@ZuPerfect

Description

@ZuPerfect

image
new Foo.getName();的执行顺序我感觉是:

1、var temp=Foo.getName
2、new temp()

因为...·...的优先级大于new...(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions