静态类

< script type = " text/javascript " >
var  test  =   function (){
    
var  mm1 = function (){alert( " mm1 " );}();
    
var  mm2  = function (){alert( " mm2 " );}
    
return  {
                F1:mm2,
                F2:
function (){alert( " FF " )}
            }
    }();    
   test.F1();  
< / script>

你可能感兴趣的:(静态类)