zoukankan      html  css  js  c++  java
  • 【222】

    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <title></title>
        <style>
            .section {
                display: none;
                border: 1px solid #999;
                background-color: #CCC;
            }
            .current {
                display: block;
            }
        </style>
    </head>
    <body>
        <h2>Section 1</h2>
        <div class="section">
            <p>Section 1 content</p>
        </div>
        <h2>Section 2</h2>
        <div class="section">
            <p>Section 2 content</p>
        </div>
        <script src="http://static01.baomihua.com/js/lib/jquery-1.4.4.min.js?t=20120926.js"></script>
        <script>
            var current = null
            $('h2').click(function() {
                if (current) {
                    current.removeClass('current')
                }
                current = $(this).next().addClass('current')
            })
        </script>
    </body>
    </html>
  • 相关阅读:
    优化-IO
    优化-cpu
    优化-内存
    系统优化
    snort -- 入侵检测系统
    tripwire--入侵检测系统
    sudo
    selinux
    pptpd
    C++ 内联函数
  • 原文地址:https://www.cnblogs.com/jzm17173/p/3330177.html
Copyright © 2011-2022 走看看