mirror of
https://github.com/wu736139669/vczero.github.io.git
synced 2026-08-05 06:23:38 +00:00
模拟数字键盘
###一、起由 (1)目前虚拟键盘需要输入小数点,需要切换键盘; (2)不同设备上存在兼容性。
###二、用法 (1)new KeyBoard(inputElement); (2)Demo如下 <html> <head> </head>
input1.onclick = function(){
new KeyBoard(input1);
};
input2.onclick = function(){
new KeyBoard(input2);
};
})();
</script>
</body>
</html>