zoukankan      html  css  js  c++  java
  • jq常用

    $(document).ready(function(){                 // jquery  加载完毕  简写为$(function(){                     });

        $('a').show;

        $('input:text').click(funciton(){});    

        $('input:text:first')                        input 标签   类型为text  第一个    

        $('input:text:last')          input 标签   类型为text  最后一个 

        $('input:text:even')                  input 标签   类型为text  基数个  1.3. 5 .7............

        $('input:text:odd')        input 标签   类型为text  偶数个  2.4.6.8...........

        $('input:eq(0)')                          input  标签  第1个 

        $('input:gt(1)')                        input  标签  大于第二个的全部input          2.3.4.....

        $('input:lt(1)')                       input标签    小于第二个       1   

        $('input:text:[name ="t"]');         input 标签   类型为text      标签名  为  t  

        $('a').addClass(‘one')                            a 标签 添加  one类属性  并去掉 兄弟的one 样式 ,addClass  只添加 a标签没有的样式。如果有样式,先删除,后再添加。

            .siblings().removeClass('one');

        $('a').eq($('b').index(this)).hide() 

            .siblings().show();

      

      

    });

  • 相关阅读:
    How to using X++ code achieve copying records
    How to using x++ code achieve Lookup files list with entire folder
    Using X++ code create and Read XML file.
    Using X++ Code Create master table form
    When you are finished renamed the Item number Jobs
    Visual Studio.NET 简介
    Visual C++中的异常处理浅析
    最常见的20种VC++编译错误信息
    开发WDM型的USB设备驱动程序
    C++中内存管理
  • 原文地址:https://www.cnblogs.com/ningmengcao/p/3281768.html
Copyright © 2011-2022 走看看