上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 58 下一页
摘要: jquery向后查找兄弟元素 next() nextAll() nextUntil() 兄弟元素,指的是该元素在同一个父元素下的“同级”元素。 <ul> <li>红色red</li> <li id="lvye">http://www.nanaopearl.com/</li> <li>青色cyan</ 阅读全文
posted @ 2020-04-17 14:16 学无边涯 阅读(782) 评论(0) 推荐(0) 编辑
摘要: jquery向前查找兄弟元素 prev() prevAll() prevUntil() 兄弟元素,指的是该元素在同一个父元素下的“同级”元素。 一、prev()方法 在jQuery中,我们可以使用prev()方法来查找某个元素的前一个“相邻”的兄弟元素。 <script type="text/jav 阅读全文
posted @ 2020-04-17 14:11 学无边涯 阅读(883) 评论(0) 推荐(0) 编辑
摘要: jquery查找后代元素 children() contents() find() 所谓的后代元素,就是某个元素的“子元素”、“孙元素”……。孙元素,在前端虽然没这个说法,但是却比较形象,所以这一节使用这一个说法。 一、children()方法 在jQuery中,我们可以使用children()方法 阅读全文
posted @ 2020-04-17 14:05 学无边涯 阅读(1155) 评论(0) 推荐(0) 编辑
摘要: jquery查找祖先元素 parent() parents() parentsUntil() 所谓的祖先元素,就是某个元素的“父元素”、“爷元素”……。爷元素,在前端虽然没这个说法,但是却比较形象,所以这一节使用这一个说法。 一、parent()方法 在jQuery中,我们可以使用parent()方 阅读全文
posted @ 2020-04-17 14:00 学无边涯 阅读(501) 评论(0) 推荐(0) 编辑
摘要: jQuery和其他 JavaScript框架冲突解决 noConflict() noConflict() 方法会释放对 $ 标识符的控制,这样其他脚本就可以使用它了。 1,通过全名替代简写的方式来使用 jQuery $.noConflict(); jQuery(document).ready(fun 阅读全文
posted @ 2020-04-17 09:39 学无边涯 阅读(154) 评论(0) 推荐(0) 编辑
摘要: jQuery get()和post()方法及比较 1,jQuery $.get() 方法 $.get() 方法通过 HTTP GET 请求从服务器上请求数据。 $("button").click(function(){ $.get("test.php",function(data,status){ 阅读全文
posted @ 2020-04-13 22:54 学无边涯 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 1,load()语法 $(selector).load(URL,data,callback); 2,load()实例 $("button").click(function(){ $("#div1").load("demo_test.txt",function(responseTxt,statusTx 阅读全文
posted @ 2020-04-13 22:49 学无边涯 阅读(568) 评论(0) 推荐(0) 编辑
摘要: jquery事件的分类总结 <div id="gsa">www.dc3688.com</div> 1,鼠标单击,双机事件 click ,dblclick 2,鼠标按下事件 mousedown,mouseup mouseout,mouseover,mousemove, 3,表单事件 change,se 阅读全文
posted @ 2020-04-01 10:33 学无边涯 阅读(252) 评论(0) 推荐(0) 编辑
摘要: jquery基础事件的绑定用法 <div>www.dc3688.com</div> 1,bind用法 $("div").bind("click",function(){ alert(''); }) 2,简写的用法 $("div").click(function(){ alert("a"); }) 3 阅读全文
posted @ 2020-03-31 09:02 学无边涯 阅读(103) 评论(0) 推荐(0) 编辑
摘要: jquery表单选择器基本用法 :input :password :radio :checkbox :submit :reset :image :button :file :hidden <form> <input type="text" name="username" value="www.96n 阅读全文
posted @ 2020-03-29 10:32 学无边涯 阅读(222) 评论(0) 推荐(0) 编辑
上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 58 下一页