![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jQuery
RONG51920
这个作者很懒,什么都没留下…
展开
-
jQuery 选择器
jQuery 选择器 基本选择器 #id:根据给定的ID匹配一个元素 HTML: <div id="notMe">1</div> <div id="myDiv">2</div> jQuery: $("#myDiv"); .class:根据给定的类名称匹配元素 HTML: <div class="myDiv">1</d...原创 2019-09-26 10:07:43 · 418 阅读 · 0 评论 -
jQuery 属性
jQuery 属性 元素属性操作 attr(name|properties|key,value|fn):获取匹配的元素集合中的第一个元素的属性的值 或 设置每一个匹配元素的一个或多个属性 HTML: <button name="btn" id="btn" title="你好">按钮</button> jQuery: $("#btn").attr("class",...原创 2019-09-26 10:09:21 · 132 阅读 · 0 评论 -
jQuery CSS操作
jQuery CSS操作 元素css操作 css(name|pro|[,val|fn]):访问匹配元素的样式属性 HTML: <button name="btn" id="btn" title="你好">按钮</button> jQuery: $("#btn").css("width", "200px"); console.log($("#btn").css("...原创 2019-09-26 10:10:25 · 143 阅读 · 0 评论 -
jQuery 筛选
jQuery 筛选 过滤 eq:根据索引匹配元素 + -1 HTML: <ul> <li>1</li> <li>2</li> <li class="lilist">3</li> <li>4</li> <p>41</p> <...原创 2019-09-26 10:11:14 · 133 阅读 · 0 评论 -
jQuery 动画
jQuery 动画 show 显示隐藏的匹配元素 HTML: <p style="display: none">Hello</p> jQuery: $("p").show(4000,function(){ $(this).text("Animation Done..."); }); hide 隐藏显示的元素 HTML: <p>Hello</...原创 2019-10-11 12:24:05 · 228 阅读 · 0 评论