当前位置: 代码迷 >> Web前端 >> JQuery插件: moreSelectors替jQuery提供更多的选择器
  详细解决方案

JQuery插件: moreSelectors替jQuery提供更多的选择器

热度:94   发布时间:2012-11-23 22:54:33.0
JQuery插件: moreSelectors为jQuery提供更多的选择器
为jQuery提供更多的选择器
http://www.softwareunity.com/jquery/JQueryMoreSelectors/
暂时不翻译,英文4级可以看懂了

For example:

    * $("DIV:color(red)") to match DIVs with red text. Handles #rrggbb and rgb(r,g,b) too.
    * $("TD:colIndex(1)") to match table cells in column 1 (allowing for colSpans too).
    * $("INPUT:modified") to match INPUTs that have been changed.
    * $("FORM/*:blur") to match form element that last had the focus.
    * $("DIV:parents(TD)") - Match DIVs that are inside table cells.
    * $("DIV").attrs("id") - Return an array of IDs from all the DIVs.
    * $("TH").filter({colSpan:2, title:"abc"}) - An enhancement to the .filter() method to optionally filter by attributes provided in {name:value} object notation
    * ... and many more
  相关解决方案