利用js的闭包原理做对象封装及调用方法 创建一个js文件,名为testClosure.js:(function(){functiona(){alert('iama');}outFunc=function(){a();}})();这里 js闭包封装