Community
Articles
Topics
Q&A
Learn
Course
Programming Dictionary
Tools Library
Development tools
Website Source Code
PHP Libraries
JS special effects
Website Materials
Extension plug-ins
AI Tools
Leisure
Game Download
Game Tutorials
Log in
English
简体中文
zh-cn
English
en
繁体中文
zh-tw
日本語
ja
한국어
ko
Melayu
ms
Français
fr
Deutsch
de
首页
>
课程
>
jquery fun class (quick start version)
>
Get attributes - attr()
Get attributes - attr()
目录列表
jquery fun class (quick start version)
jQuery understanding
jQuery Tutorial
jQuery installation
Selector
event
jQuery effect
Hide and show
fade in and fade out
slide
operating elements
jQuery - Get content...
Get attributes - att...
Remove element/conte...
Add element
Add element test que...
Selector
ancestor selector
descendant selector
filter
Quick selection meth...
AJAX
Introduction to AJAX
$.get() method
$.post()
ajax() method
event
click event
mouseover event
Focus and out-of-foc...
Keyboard events
Expand
jQuery - chain
css() method
index() method
JSONP
load()
获取属性 - attr()
jQuery
attr()
方法用于获取属性值。
下面的例子演示如何获得链接中 href 属性的值:
实例
jquery用以下什么方法来获取属性值
attr()
click()
dblclick()
text()
1
/2
继续
正确
错误