Files
vczero.github.io/num_key
2015-04-23 11:04:20 +08:00
..
2015-04-23 11:04:20 +08:00
2015-04-23 10:56:50 +08:00
2015-04-23 10:41:51 +08:00

模拟数字键盘

###一、起由 (1)目前虚拟键盘需要输入小数点,需要切换键盘; (2)不同设备上存在兼容性。

###二、用法 1new KeyBoard(inputElement); 2Demo如下 <html> <head> </head>



<script type="text/javascript" src="keyboard.js"></script> <script type="text/javascript"> (function(){ var input1 = document.getElementById('text1'); var input2 = document.getElementById('text2');

			input1.onclick = function(){
				new KeyBoard(input1);
			};
		
			input2.onclick = function(){
				new KeyBoard(input2);
			};
		
		})();
		</script>
	</body>
	</html>