jquery概述

jQuery API provides different event methods to interact with the browser. jQuery event method registers an event handler when the user interacts with the web pages. We can make any manipulations on the selected element after registering the event handler. This makes the web page more dynamic.

jQuery API提供了不同的事件方法来与浏览器进行交互。 当用户与网页交互时, jQuery事件方法将注册事件处理程序。 注册事件处理程序后,我们可以对所选元素进行任何操作。 这使网页更加动态。

jQuery events functions are huge and can get triggered by any type of mouse movement or clicks, keyboard activities, hover, focus etc.

jQuery事件功能非常强大,可以通过任何类型的鼠标移动或单击,键盘活动,悬停,焦点等来触发。

These are the various jQuery event methods provided by the API:

这些是API提供的各种jQuery事件方法:

  1. .click(): This method fires on a mouse click..click() :单击鼠标时触发此方法。
  2. .dblclick(): This method fires on a mouse double-click..dblclick() :双击鼠标时将触发此方法。
  3. .mousedown(): This method fires when mouse button is pressed..mousedown() :按下鼠标按钮时将触发此方法。
  4. .mouseenter(): This method fires when the mouse enters the html element area..mouseenter() :当鼠标进入html元素区域时,将触发此方法。
  5. .mouseleave(): This method fires when the mouse leaves the html element area..mouseleave() :当鼠标离开html元素区域时,将触发此方法。
  6. .mousemove(): This method fires when the mouse is moved..mousemove() :移动鼠标时将触发此方法。
  7. .mouseout(): This method fires when the mouse moves out of the html element..mouseout() :当鼠标移出html元素时,将触发此方法。
  8. .mouseover(): This method fires when the mouse moves over the html element..mouseover() :当鼠标移到html元素上时,将触发此方法。
  9. .mouseup(): This method fires when the mouse button is released.mouseup() :释放鼠标按钮时将触发此方法
  10. .hover(): This method fires when the mouse enters and leaves the html elements..hover() :当鼠标进入并离开html元素时,将触发此方法。
  11. .keydown(): This method fires when a key is pressed.keydown() :按下某个键时将触发此方法
  12. .keypress(): This method fires when a key is pressed and released..keypress() :按下和释放键时将触发此方法。
  13. .keyup(): This method fires when a key is released..keyup() :释放键时将触发此方法。
  14. .blur(): This method fires when the html element loses focus..blur() :当html元素失去焦点时,此方法将触发。
  15. .change(): This method fires on change..change() :此方法在更改时触发。
  16. .focus(): This method fires when an element gets focus..focus() :当元素获得焦点时,此方法将触发。
  17. .load(): This method fires when a document is loaded.load() :加载文档时触发此方法
  18. .unload(): This method fires when documents are unloaded.unload() :卸载文档时触发此方法
  19. .error(): This method fires when there is an error..error() :发生错误时触发此方法。
  20. .resize(): This method fires when the window is resized..resize() :调整窗口大小时将触发此方法。
  21. . scroll (): This method fires when the window is scrolled. scroll() :滚动窗口时触发此方法。
  22. . select (): This method fires when a text is selected. select()选择文本时触发此方法。
  23. .submit(): This method fires when a form is submitted..submit() :提交表单时将触发此方法。

The general syntax for using jQuery event method is selector.jQueryEventMethod(). jQueryEventMethod could be any above mentioned methods. You can use these methods in your code to effectively interact with the browser. We will look into these jQuery events with examples in coming posts.

使用jQuery事件方法的常规语法是selector.jQueryEventMethod()jQueryEventMethod可以是上述任何方法。 您可以在代码中使用这些方法来有效地与浏览器进行交互。 我们将在后续文章中通过示例研究这些jQuery事件。

翻译自: https://www.journaldev.com/4940/jquery-event-methods-overview

jquery概述

jquery概述_jQuery事件方法概述相关推荐

  1. jquery教程_jQuery教程

    jquery教程 I have written a lot of jQuery tutorial articles. This is an index post for all the jQuery ...

  2. jQuery 效果函数,jquery文档操作,jQuery属性操作方法,jQuerycss操作函数,jQuery参考手册-事件,jQuery选择器

    jQuery 效果函数 方法 描述 animate() 对被选元素应用"自定义"的动画 clearQueue() 对被选元素移除所有排队的函数(仍未运行的) delay() 对被选 ...

  3. jQuery源码分析系列:事件模块概述

    jQuery的事件模块是较复杂的,前面仅仅提到了对事件对象的包装.即统一了一些兼容性的问题.这篇会综述下jQuery的整个事件模块.后面会详细分析jQuery.event.add/jQuery.eve ...

  4. 使用Spring Security3的四种方法概述

    使用Spring Security3的四种方法概述 那么在Spring Security3的使用中,有4种方法: 一种是全部利用配置文件,将用户.权限.资源(url)硬编码在xml文件中,已经实现过, ...

  5. Android方法的概括,Android_Android中startService基本使用方法概述,Android中有两种主要方式使用Ser - phpStudy...

    Android中startService基本使用方法概述 Android中有两种主要方式使用Service,通过调用Context的startService方法或调用Context的bindServi ...

  6. DBA_Oracle性能优化的基本方法概述(方法论)

    2014-12-18 Created By BaoXinjian 一.摘要 Oracle 性能优化的基本方法概述 1)设立合理的性能优化目标. 2)测量并记录当前性能. 3)确定当前Oracle性能瓶 ...

  7. 地理建模方法概述02

    文章目录 第4节 地理建模方法概述 地理建模中常用的数学方法 一.数据分析法 (一)探索性数据分析 (二)数据分析的地理建模实例 二.机理分析法 (一)结构分析法 (二)功能分析法 (三)过程分析法 ...

  8. Oracle 性能优化的基本方法概述

    dba基础课程:Oracle 性能优化的基本方法概述 Oracle 性能优化的基本方法 概述 1)设立合理的性能优化目标. 2)测量并记录当前性能. 3)确定当前Oracle性能瓶颈(Oracle等待 ...

  9. 在jQuery中删除事件处理程序的最佳方法?

    我有一个input type="image" . 这就像Microsoft Excel中的单元格注释一样. 如果有人在与该input-image配对的文本框中input-image ...

最新文章

  1. 禁用和删除Exchange邮箱深入探讨
  2. VirtualBox安装Ubuntu详细过程
  3. 自定义JWT认证过滤器
  4. 创建VLAN的两种方法
  5. 单片机c语言随机数,单片机C语言如何产生随机数
  6. day10_cookiesession学习笔记
  7. 被夸了几十年,地球都要因为它变秃了,你还天天用它......
  8. 文本分类--情感分析
  9. Problem A: 童年生活二三事
  10. 从减少DNS查找来优化网站
  11. HTTP协议中你必须知道的三种数据格式
  12. [转载] 机器学习 scikit-learn1 预测贷款用户是否会逾期
  13. select、poll、epoll的区别
  14. vue实现中英文切换
  15. 【倒计时1天】PPP全球数字资产投资峰会-中国区北京首站之金融科技区块链支持可持续发展...
  16. Vue实现在线编辑excel
  17. 傅里叶变换的简单理解
  18. 语音识别-关键词检测
  19. 兆骑科创高层次人才引进双创平台,双创服务,赛事路演
  20. 剖析抖音快速涨粉的文案号,了解大佬运营技巧,学以致用

热门文章

  1. 在DataTable中执行DataTable.Select(条件),
  2. ECommon.Dapper 轻量级的dapper扩展
  3. spring listener监听器
  4. php和java的一些比较
  5. ubuntu mysql主从库的搭建
  6. android平台开发的安装
  7. SIEMENS报到第一天
  8. [转载] python 字符串(string)
  9. [转载] python价值算法_PangRank算法原理及其Python实现
  10. [转载] python数学编程书推荐_图书推荐:《Python数学编程》