delay-keypress:javascript key event delay util

时间:2024-05-30 09:03:53
【文件属性】:

文件名称:delay-keypress:javascript key event delay util

文件大小:2KB

文件格式:ZIP

更新时间:2024-05-30 09:03:53

JavaScript

延迟按键 安装 npm i delay-keypress g Javascript keydown事件实用程序 它是由于需要性能的项目而创建的。 React的例子 import React from 'react'; import DelayKeypress from 'delay-keypress'; class Example extends React.Component{ //If the key is re-entered within 0.5 seconds, it will not be executed. //It runs if there is no input for 0.5 seconds. onChange =(value)=>{ //delay 0.5s console.log(value)


【文件预览】:
delay-keypress-master
----index.js(395B)
----package.json(882B)
----readme.md(1KB)

网友评论