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() //寻找目标元素的下一个元素;
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!