Home > Web Front-end > JS Tutorial > body text

What are the commonly used functions in jquery?

零下一度
Release: 2017-07-21 17:28:55
Original
1690 people have browsed it

This article shares what are the commonly used functions of jquery?

is as follows:

.text()  //获得或更改元素文本;
.html()  //获得或更改元素标签;
.val()  //获得或更改input值;
.css()  //获得或更改元素样式;  
.fadeIn()  //实现元素淡入效果;
.fadeOut()   //实现元素淡出效果;
.on()   .off()    //给元素绑定事件;
.delegate()  //给现有和后来加的元素绑定事件;
.toggle()  //切换执行当中的函数;
.click()  //点击触发事件;
.focus()  //获得焦点触发事件;
.blur()  //失去焦点触发事件;
.keyup()  //抬起键盘触发事件;
.keydown()  //按下键盘触发事件;
.hover()  //鼠标悬浮在目标是触发事件;
.hide()  //隐藏元素;
.unbind()  //删除指定元素的所有事件处理程序;
.bind()  //给元素绑定事件;
.removeClass()  //移除元素样式;
.addClass()  //给元素添加样式;
.prev()  //寻找目标元素的下一个元素;
.next()  //寻找目标元素的下一个元素;
Copy after login


The above is the detailed content of What are the commonly used functions in jquery?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template