Javascript new object (function ) vs inline invocation

后端 未结 3 465
日久生厌
日久生厌 2020-12-30 13:31

Is there any considerations to determine which is better practice for creating an object with private members?

var object = new function () { 
   var private         


        
3条回答
提交回复
热议问题