(function(){functionStudent(){this.name='stu';this.age='18';}window.Student=Student;})();vars=newStudent();console.dir(s);1,這種形式算閉包嗎?2,自調(diào)用函數(shù)算定義在全局中還是在哪呢?
將自調(diào)用函數(shù)中的構(gòu)造函數(shù)暴露在全局中,算閉包嗎
12345678_0001
2019-05-21 11:13:06