Difference between Class(), new Class and new Class()
问题 What are the differences between Class() and new Class , new Class() ? I did a test and the later seems to do be quicker. http://jsperf.com/object-initilzation I read there is no difference, but there appears to be. 回答1: Class() Calls a function. Don't use this on constructor functions. new Class and new Class() There is no difference between these, both instantiate a new instance of a class. The parens are optional if there are no arguments being passed and the new keyword is used. 回答2: