标签:cti get on() apply his nbsp bsp nts ||
1.通用模式 var getSingle = function( fn ){
var result;
return function(){
return result || ( result = fn .apply(this, arguments ) )
} };
js单例模式
原文地址:https://www.cnblogs.com/qiyc/p/11314657.html