摘要: 3 操作元素—属性 CSS 和 文档处理 3.1 属性操作 $("p").text() $("p").html() $(":checkbox").val() $(".test").attr("alex") $(".test").attr("alex","sb") $(".test").attr("checked","checked") $(":c... 阅读全文
posted @ 2016-08-27 10:03 Ju-do-it 阅读(186) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/luotianshuai/p/5196997.html http://www.cnblogs.com/liujianzuo888/articles/5686777.html http://www.cnblogs.com/Wxtrkbc/p/5661047.html http://www.cnblogs.com/wupeiqi/articles/4457... 阅读全文
posted @ 2016-08-27 10:02 Ju-do-it 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 2 、寻找元素 (重要的选择器和筛选器) 2.1、选择器 1.1 基本选择器 $("*") $("#id") $(".class") $("element") $(".class, p, div") 【基本选择器】代码展示: Title id="notMe" id="myDiv" 1 2 3 ... 阅读全文
posted @ 2016-08-27 10:02 Ju-do-it 阅读(255) 评论(0) 推荐(0) 编辑