mini-number-keyboard
v0.1.18
Published
一个移动端数字键盘
Downloads
4
Readme
一个简单的移动端数字键盘
安装
npm i mini-number-keyboard --save
导入
import MiniKeyboard from 'mini-number-keyboard'
or
<script src="/node_modules/mini-number-keyboard/dist/keyboard.min.js"></srcipt>
使用
<div id="container" class="keyboard-container"></div>
<script>
let keyboard = new MiniKeyboard({
container: 'container'
})
keyboard.on('keydown', function(key) {
console.log(key)
})
</script>