s = (function S(){ var bean; function get(){ if(bean){ return bean }else{ bean = T(); return bean; } }; return {get:get} } )()
JS单例
原文:https://www.cnblogs.com/413xiaol/p/8178953.html