 Singleton(name);
			}
			return instance;
		}
	})();

</script>

<html>

<body>
	<button id="loginBtn">登录</button>
</body>
<script>
	var loginLayer = (function () {
		var div = document.createElement('div');
		div.innerHTML = '我是登录浮窗';
		div.style.display = 'none';
		document.body.appendChild(div);
		return div;
	})();
	document.getElementById('loginBtn').onclick = function () {

		loginLayer.style.display = 'block';
	};
</script>

</html>


<html>

<body>
	