Git Product home page Git Product logo

keyboard's Introduction

模拟数字键盘

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

###二、用法 (1)new KeyBoard(inputElement); (2)禁用软键盘,添加readonly="readonly"属性; (3)Demo如下 <title>模拟数字键盘</title>



<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>

###三、二维码 222

keyboard's People

Contributors

vczero avatar

Watchers

James Cloos avatar Zhu Anna avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.