• [ jquery 选择器 :visible ] 此方法选取匹配所有的可见元素


    此方法选取匹配所有的可见元素:

    实例:

    <!DOCTYPE html>
    <html class='html'>
    <head class='head'>
    <meta charset=' utf-8'>
    <meta name='author' content='http://www.52jb.net/' />
    <script type='text/javascript' src='./js/jquery-1.12.1.min.js'></script>
    <title>Inset you title</title>
    <style type='text/css'>
        *{margin:0;padding:0;}
        div,form{150px;height:20px;margin:20px;}
        #hidden,#user{display:none;}
        #opacity{filter:alpha(opacity=0);opacity:0;}
    </style>
    <script type='text/javascript'> 
        $(function(){ 
               alert($('body :visible').get(0).className);
        });
    </script>
    </head>
    <body class='body'>
        <div id='hidden' class='hidden'>hidden element</div>
        <div id='opacity' class='opacity'>opacity element</div>
        <form id='form' class='form'>
            <input type='text' id='user' />
            <input type='hidden' class='hidden' value='hidden-form-input'/>
        </form>
    </body>
    </html>
  • 相关阅读:
    http2新特性
    SSL/TLS工作原理
    https工作原理解析
    k8s认证与鉴权
    grpc
    golang channel是线程安全的吗
    golang map是线程安全的吗
    k8s创建deployment的工作流
    Docker实践:部署漏洞扫描 AWVS + Nessus
    Python Peewee
  • 原文地址:https://www.cnblogs.com/mysearchblog/p/5606537.html
Copyright © 2020-2023  润新知