摘要: 1)层级选择器 a.子代选择器 > eg: 查找div 子代的类包含content的元素 $(“div>.content”) b.所有子代选择器 (某个元素里面的所有元素) eg 查找表单from里面的所有input元素 $(“form input”) c.prev+next 匹配所有紧接在 pre 阅读全文
posted @ 2016-09-06 01:32 code_killer 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 基本选择器 1)id # 选择器 找到 id 相对应的元素 eg: $(“#container”) 找到id 为container的元素的集合 2). class 类选择器 找到 class 包含 此类的元素 eg $(“.content”) 找到只要class里面包含content类的的元素的集合 阅读全文
posted @ 2016-09-06 01:28 code_killer 阅读(338) 评论(0) 推荐(0) 编辑