Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jQuery] 第2125天 如何使用jQuery设置或获取元素的属性值? #6094

Open
haizhilin2013 opened this issue Feb 7, 2025 · 1 comment
Labels
jQuery jQuery

Comments

@haizhilin2013
Copy link
Collaborator

第2125天 如何使用jQuery设置或获取元素的属性值?

3+1官网

我也要出题

@haizhilin2013 haizhilin2013 added the jQuery jQuery label Feb 7, 2025
@han1777
Copy link

han1777 commented Feb 11, 2025

使用 $(selector).attr(attributeName , value) 方法获取或设置元素的属性值。只传attributeName是获取,加上value是设置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jQuery jQuery
Projects
None yet
Development

No branches or pull requests

2 participants