var myModule = (function($, _) { var module = {} var privateVariable = "Hello World" function privateMethod() { } module.pulicProperty = "Foobar" module.pulicMethod = function() { } return module })(jQuery, _);
时间: 2024-11-05 02:17:36
var myModule = (function($, _) { var module = {} var privateVariable = "Hello World" function privateMethod() { } module.pulicProperty = "Foobar" module.pulicMethod = function() { } return module })(jQuery, _);