有没有人看到以下用于创建单例的代码块有任何问题?
Singleton = {
getInstance : function() {
if (Singleton._instance)
return Singleton._instance;
Singleton._instance = new function() {
//create object here
};
return Singleton._instance;
}
};