javascript 闭包匿名函数 var oEvent = {}; (function(){ var addEvent = function(){}; function removeEvent(){} oEvent.addEvent = addEvent; oEvent.removeEvent = removeEvent; })();
JS-匿名函数-闭包(function(){})()
最新推荐文章于 2024-08-09 21:30:00 发布
javascript 闭包匿名函数 var oEvent = {}; (function(){ var addEvent = function(){}; function removeEvent(){} oEvent.addEvent = addEvent; oEvent.removeEvent = removeEvent; })();