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
Introduction to the Design and Analysis of Algorithms
Anany Levitin / Addison Wesley / 2006-2-24 / USD 122.00
Based on a Based on a new classification of algorithm design techniques and a clear delineation of analysis methods, "Introduction to the Design and Analysis of Algorithms" presents the subject in a c......一起来看看 《Introduction to the Design and Analysis of Algorithms》 这本书的介绍吧!