当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - JS new Object VS new Object()

问题描述:

Possible Duplicate:

new MyObject(); vs new MyObject;

What is the difference between

new Object

and

new Object()

Is there a reason to ever leave the parenthesis out or is that just something people do sometimes?

网友答案:

No difference

分享给朋友:
您可能感兴趣的文章:
随机阅读: