js制作数字软键盘代码

来源:https://www.sucaihuo.com/js/4268.html 2019-03-26 11:04浏览(552) 收藏

原生js制作的数字软键盘代码,一款医疗录生命体征专用的数字键盘,可以提高录入数字的速度。
js制作数字软键盘代码
分类:其它特效 难易:初级
查看演示 下载资源 下载积分: 20 积分

js代码

<script type="text/javascript" src="keyBoard.js"></script>
<script type="text/javascript">
	var keyBoard
	window.onload = function () {
		// 获取键盘实例
		this.keyBoard = getKeyBoard(document.body)
		// 设置PC显示键盘
		this.keyBoard.setPCDisplay(true)
	}
	function show(dom,type) {
		// 设置接收键盘输入的dom,和需要切换焦点的类型
		this.keyBoard.setOutput(dom, type)
		// 显示
		this.keyBoard.show()
	}
	function showById(domId, type) {
		// 设置接收键盘输入的domId,和需要切换焦点的类型
		this.keyBoard.setOutputById(domId, type)
		// 显示
		this.keyBoard.show()
	}
	function showByClass(domClass, type) {
		// 设置接收键盘输入的domClass,和需要切换焦点的类型
		this.keyBoard.setOutputByClass(domClass, type)
		// 显示
		this.keyBoard.show()
	}
</script>
评论0
头像

系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791

1 2