CS-Interview-Knowledge-Map icon indicating copy to clipboard operation
CS-Interview-Knowledge-Map copied to clipboard

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

Open ZuPerfect opened this issue 5 years ago • 0 comments

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

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

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

ZuPerfect avatar Nov 09 '20 09:11 ZuPerfect