博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jQuery keyup事件
阅读量:2533 次
发布时间:2019-05-11

本文共 1331 字,大约阅读时间需要 4 分钟。

jQuery keyup is one of the keyboard event methods. Other jQuery keyboard event methods are keydown() and keypress().

jQuery keyup是键盘事件方法之一。 其他jQuery键盘事件方法是keydown()keypress()

jQuery键盘 (jQuery keyup)

jQuery keyup method triggers when you release the pressed key. You can attach functions to execute when this event occurs.

当您释放按下的键时,jQuery keyup方法将触发。 您可以附加函数以在发生此事件时执行。

jQuery keyup方法语法 (jQuery keyup method syntax)

  1. keyup(): This jQuery keyup method is used without any arguments.

    keyup():此jQuery keyup方法使用时不带任何参数。
  2. keyup(handler): This jQuery keyup method attaches a function to be executed when the keyup event is fired.

    keyup(handler):此jQuery keyup方法附加了在触发keyup事件时要执行的功能。

jQuery keyup示例 (jQuery keyup example)

Following example demonstrates the use of jQuery keyup method.

以下示例演示了jQuery keyup方法的用法。

jquery-keyup.html

jquery-keyup.html

jQuery keyup event example

jQuery keyup example

Enter anything:
Type something above, after key up background color will change to Red.
Click on Reset button to try again.

In above example, when the key is up, keyup() method is triggered which in turn executes the function that changes the background colour to red.

在上面的示例中,当按下键时,将触发keyup()方法,该方法又执行将背景色更改为红色的功能。

Below screencast shows above jQuery keyup example in action.

下面的截屏视频显示了上面的jQuery键盘操作示例。

jQuery keyup演示 (jQuery keyup demo)

翻译自:

转载地址:http://yclzd.baihongyu.com/

你可能感兴趣的文章
ASP.NET MVC:通过 FileResult 向 浏览器 发送文件
查看>>
CVE-2010-2883Adobe Reader和Acrobat CoolType.dll栈缓冲区溢出漏洞分析
查看>>
使用正确的姿势跨域
查看>>
AccountManager教程
查看>>
Android学习笔记(十一)——从意图返回结果
查看>>
算法导论笔记(四)算法分析常用符号
查看>>
ultraedit激活
查看>>
总结(6)--- python基础知识点小结(细全)
查看>>
亿级曝光品牌视频的幕后设定
查看>>
ARPA
查看>>
JSP开发模式
查看>>
我的Android进阶之旅------>Android嵌入图像InsetDrawable的使用方法
查看>>
Detours信息泄漏漏洞
查看>>
win32使用拖放文件
查看>>
Android 动态显示和隐藏软键盘
查看>>
raid5什么意思?怎样做raid5?raid5 几块硬盘?
查看>>
【转】how can i build fast
查看>>
null?对象?异常?到底应该如何返回错误信息
查看>>
django登录验证码操作
查看>>
(简单)华为Nova青春 WAS-AL00的USB调试模式在哪里开启的流程
查看>>