How and what benefit can I take by including Sizzle.js along with jquery1.4.2?

前端 未结 4 1596
抹茶落季
抹茶落季 2021-02-07 04:15

latest jquery 1.4.2 downloaded from jquery.com comes with Sizzle.js also.

How and what benefit can I take from included Sizzle.js?

Is Sizzle.js a standalone lib

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-07 04:36

    Here is the resource for that:

    http://wiki.github.com/jeresig/sizzle/

    Selector Features

    * CSS 3 Selector support
    * Full Unicode support
    * Escaped selector support #id\:value
    * Contains text :contains(text)
    * Complex :not :not(a#id)
    * Multiple :not :not(div,p)
    * Not attribute value [name!=value]
    * Has selector :has(div)
    * Position selectors :first, :last, :even, :odd, :gt, :lt, :eq
    * Easy Form selectors :input, :text, :checkbox, :file, :password, :submit, etc
    * Header selector :header
    

    Code Features

    * Provides meaningful error messages for syntax problems
    * Uses a single code path (no XPath)
    * Uses no browser-sniffing
    * Caja-compatible code
    

提交回复
热议问题