zoukankan      html  css  js  c++  java
  • jquery-3 jquery选择器

    jquery-3 jquery选择器

    一、总结

    一句话总结:选择器使用的时候可以结合参考手册,里面都已经详细归类好了。(多用才能熟啊)

    1、$(:input).css({'color':'#987654'}); 中的css方法中的参数是什么数据格式?

    是json数据格式,也就是jquery中的参数采用的是json数据格式

    2、jquery中的参数采用的是什么数据格式?

    json数据格式

    二、jquery选择器

    1、相关知识

    选择器:
    1.常用
        1)#id
        2)ele
        3).class
        4)*
        5)sel1,sel2
    2.层级
        1)ancestor descendant
        2)parent > child
        3)prev + next
        4)prev ~ siblings
    3.基本
        1):first
        2):last
        3):not
        4):even
        5):odd
        6):eq
        7):gt
        8):lt
    4.内容
        1):has
        2):parent
        3):empty
    5.属性
        1)[name]
        2)[name=user1]
        3)[name!=user1]
        4)[name^=user]
        5)[name$=user]
        6)[name*=er]
        7)[name=user1][name*=er]
    6.子元素
        1)nth-child
        2)first-child
        3)last-child
        4)only-child
    7.表单
        1):input
        2):text
        3):password
        4):radio
        5):checkbox
        6):submit
        7):reset
        8):button
        9):file
        10):hidden
    8.表单属性
        1):checked
        2):selected

    2、参考手册地址

    :input | jQuery API 3.2 中文文档 | jQuery API 在线手册
    http://jquery.cuishifeng.cn/input.html

     
  • 相关阅读:
    图床_shell命令grep/egrep
    图床_shell命令vi/vim
    图床_shell命令tr
    图床_shell命令wc
    图床_shell命令vimdiff
    图床_shell命令diff
    图床_shell命令rev
    图床_shell命令cut
    图床_shell命令tail
    图床_shell命令head
  • 原文地址:https://www.cnblogs.com/Renyi-Fan/p/9206876.html
Copyright © 2011-2022 走看看