Object.create(X.prototype) VS new X

這裏面文章出處 http://www.javashuo.com/article/p-ujvkqwac-do.htmlweb new Test(): create new Object() obj set obj.__proto__ to Test.prototype; return Test.call(obj) || obj; // normally obj is returned but con
相關文章
相關標籤/搜索