jQuery 杂项 get() 方法
jQuery 教程
· 2019-03-28 18:38:13
实例
获取第一个 <p> 元素的名称和值:
$("button").click(function(){
x=$("p").get(0);
$("div").text(x.nodeName + ": " + x.innerHTML);
});
x=$("p").get(0);
$("div").text(x.nodeName + ": " + x.innerHTML);
});
定义和用法
get() 方法获取由选择器指定的 DOM 元素。
语法
$(selector).get(index)
| 参数 | 描述 |
|---|---|
| index | 可选。规定要获取哪个匹配的元素(通过 index 编号)。 |
点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html
The Intersectional Internet
Safiya Umoja Noble、Brendesha M. Tynes / Peter Lang Publishing / 2016
From race, sex, class, and culture, the multidisciplinary field of Internet studies needs theoretical and methodological approaches that allow us to question the organization of social relations that ......一起来看看 《The Intersectional Internet》 这本书的介绍吧!