jquery选择器的空格问题
来源:互联网 发布:mac安装包损坏 编辑:程序博客网 时间:2024/05/24 06:00
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Insert title here</title><script type="text/javascript" src="jquery/jquery-1.11.1.js"></script><script type="text/javascript"> $(function(){
//选择class为one下的所有的隐藏的子元素(这个是先选class="one"的元素,然后再选隐藏的(是class=one的子元素)) alert($(".one :hidden").length);
//选择隐藏为class等于one的元素(先选隐藏的,再选class=”one“的元素) alert($(".one:hidden").length);
});</script></head><body> <div style="display:block;" class="one">1111111111111111111</div> <div style="display: none;" class="one">1111111111111111111</div> <div style="display: none;" class="one">1111111111111111111</div> <div class="one"> <div style="display: none;">1111111111111111111</div> <div style="display: none;">1111111111111111111</div> <div style="display: none;">1111111111111111111</div> <div style="display: none;">1111111111111111111</div> <div style="display: none;">1111111111111111111</div> <div style="display: none;" class="one">1111111111111111111</div> </div></body></html>
0 0
- jquery选择器的空格问题
- jQuery中选择器的空格问题
- jQuery中选择器的空格问题
- 关于jQuery选择器的空格问题
- jQuery选择器有无空格问题
- jQuery中选择器空格问题
- JQuery选择器中的空格问题
- jquery选择器中含有不含有空格的问题
- Jquery选择器要注意空格问题
- jQuery选择器中含有空格的注意事项
- jQuery选择器中含有空格的注意事项
- jQuery选择器中含有空格的注意事项
- jQuery选择器中含有空格的注意事项
- jQuery选择器中含有空格的注意事项
- css3选择器空格问题
- jQuery中选择器空格注意事项
- jQuery选择器this的问题
- jQuery选择器的效率问题
- 腾讯 2016届实习生招聘笔试
- 10句编程箴言 (转)
- HDOJ Can you find it? 2141(二分搜索)
- 【引用】C/C++中指针和引用之相关问题研究
- Android百度地图学习笔记(三)---地理编码
- jquery选择器的空格问题
- 提问的智慧
- 腾讯的开放
- 一篇武汉大学毕业生的反思
- 再次写给我们这些浮躁的程序员(转载)
- 不要自称为程序员 (转载)
- 第二章(6).一元多项式的表示及相加
- Python编码相关问题 Unicode UTF-8 encode() decode()
- 第三章(1).顺序栈